Browse Source

Fix README example

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

2
Cargo.toml

@ -14,4 +14,4 @@ default = ["backend_c"]
[dependencies] [dependencies]
structopt = "0.3.21" 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 // examples/fib.sb
fn main() { fn main() {
let num = 10 let num: int = 10
println(fib(num)) println(fib(num))
} }
fn fib(n) { fn fib(n: int) {
if n <= 1 { if n <= 1 {
return n return n
} }

Loading…
Cancel
Save