Browse Source

Fix README example

github-actions
Garrit Franke 1 year ago
parent
commit
390f02166d
  1. 2
      Cargo.toml
  2. 4
      README.md

2
Cargo.toml

@ -14,4 +14,4 @@ default = ["backend_c"]
[dependencies]
structopt = "0.3.21"
rust-embed = "5.7.0"
rust-embed = "5.7.0"

4
README.md

@ -18,11 +18,11 @@ The Sabre compiler emits JavaScript, until the language has matured sufficiently
// examples/fib.sb
fn main() {
let num = 10
let num: int = 10
println(fib(num))
}
fn fib(n) {
fn fib(n: int) {
if n <= 1 {
return n
}

Loading…
Cancel
Save