From 17b802cc16d31928a17a616307653e2a9021e04c Mon Sep 17 00:00:00 2001 From: Lucas Larson Date: Tue, 9 Jul 2024 12:33:15 -0400 Subject: [PATCH] grammar, punctuation --- SC2105.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SC2105.md b/SC2105.md index dfc5913..ece34e4 100644 --- a/SC2105.md +++ b/SC2105.md @@ -26,10 +26,10 @@ esac ``` ### 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`. ### 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. \ No newline at end of file +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. \ No newline at end of file