Skip to content

Commit 23dc3bc

Browse files
authored
Fix for loop increment syntax in README
1 parent 65c7c34 commit 23dc3bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def myfunc(a, b, c) { // yeah it uses def for function definition idk
7878
c // last statement returns like in rust
7979
}
8080
print(myfunc(1, 2, 3)) // prints "early"
81-
for (var i = 0; i < 10; i++) { // for loops (c style)
81+
for (var i = 0; i < 10; i += 1) { // for loops (c style)
8282
print(i) // auto converts to string, will throw if it cant
8383
}
8484
return "top level return"

0 commit comments

Comments
 (0)