Skip to content

Commit

Permalink
Identation
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrazo committed Oct 12, 2019
1 parent 25916b6 commit 00b3a61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/conditional_statements/conditional_statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ mut counter := 1
for {
counter++
factorial=factorial*counter
if counter >= 5 {
print(factorial)
if counter > 5 {
print(factorial)
break
}
}
println(counter) // "100"
println(counter) // "120"
```

3. `for` with the traditional C style
Expand All @@ -121,7 +121,7 @@ mut counter := 1
for i := 0; i < 5; i++ {
factorial=factorial*counter
if i == 6 {
print(factorial)
print(factorial)
continue
}
println(i)
Expand Down

0 comments on commit 00b3a61

Please sign in to comment.