From d5a96302f629b526f94745e6f4b431b02f7b6e4e Mon Sep 17 00:00:00 2001 From: Jan Vitturi Date: Fri, 20 Sep 2019 15:48:25 +0200 Subject: [PATCH] Fix confusing substring examples The placeholders do not work since `sub_string2` contains `sub_string` and give the impression of fall-through statements. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 42ba1f3..a91f9c3 100644 --- a/README.md +++ b/README.md @@ -193,12 +193,12 @@ John Black is my name. ```shell case $var in - *sub_string*) + *sub_string1*) # Do stuff ;; *sub_string2*) - # Do more stuff + # Do other stuff ;; *) @@ -213,12 +213,12 @@ esac ```shell case $var in - sub_string*) + sub_string1*) # Do stuff ;; sub_string2*) - # Do more stuff + # Do other stuff ;; *) @@ -233,12 +233,12 @@ esac ```shell case $var in - *sub_string) + *sub_string1) # Do stuff ;; *sub_string2) - # Do more stuff + # Do other stuff ;; *)