Skip to content

Commit

Permalink
Merge pull request #215 from Feoramund/document-label-block-break
Browse files Browse the repository at this point in the history
Document labeled block `break`
  • Loading branch information
Kelimion authored Jun 10, 2024
2 parents 7e588d6 + 90c2cf3 commit 6802669
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions content/docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,13 @@ loop: for cond1 {
break loop // leaves both loops
}
}
exit: {
if true {
break exit // works with labeled blocks too
}
fmt.println("This line will never print.")
}
```

#### `continue` statement
Expand Down

0 comments on commit 6802669

Please sign in to comment.