Skip to content

Commit 94ad001

Browse files
authored
Update docs/language/control-flow.md
1 parent 345dc26 commit 94ad001

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/language/control-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ This makes the switch statement safer and easier to use, avoiding the accidental
179179

180180
Some other languages implicitly fall through to the block of code associated with the next case, so it is common to write cases with an empty block to handle multiple values in the same way.
181181

182-
To prevent developers from writing switch statements that assume this behavior, blocks must have at least one statement. Empty blocks are invalid:
182+
To protect developers from writing switch statements that assume this behavior, blocks must have at least one statement. Empty blocks are invalid:
183183

184184
```cadence
185185
fun words(_ n: Int): [String] {

0 commit comments

Comments
 (0)