From 969056e5c1f763bb16fccf10dfd894b1c512176a Mon Sep 17 00:00:00 2001 From: Daniel Wright Date: Mon, 27 Feb 2023 12:08:39 +1000 Subject: [PATCH] Partial revert of previous change --- SC2001.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SC2001.md b/SC2001.md index 78f53f5..78442a0 100644 --- a/SC2001.md +++ b/SC2001.md @@ -3,13 +3,13 @@ ### Problematic code: ```sh -string="string" ; echo "$string" | sed -e "s/ir/ri/" +string="stirng" ; echo "$string" | sed -e "s/ir/ri/" ``` ### Correct code: ```sh -string="string" ; echo "${string//ir/ri}" +string="stirng" ; echo "${string//ir/ri}" ``` ### Rationale: