grammar, punctuation

Lucas Larson
2024-07-09 12:33:15 -04:00
parent 9d1a729316
commit 17b802cc16

@@ -26,10 +26,10 @@ esac
``` ```
### Rationale: ### Rationale:
`break` or `continue` was found outside a loop. These statements are only valid in loops. In particular, `break` is not required in `case` statements as there is no implicit fall-through. `break` or `continue` was found outside a loop. These statements are valid only in loops. In particular, `break` is not required in `case` statements as there is no implicit fall-through.
To return from a function or sourced script, use `return`. To exit a script, use `exit`. To return from a function or sourced script, use `return`. To exit a script, use `exit`.
### Exceptions: ### Exceptions:
It's possible to `break`/`continue` in a function without a loop. The call will then affect the loop -- if any -- that the function is invoked from. This is obviously not good coding practice. It's possible to `break`/`continue` in a function without a loop. The call will then affect the loop  if any  that the function is invoked from, but this is obviously not good coding practice.