From f312940937ec250b6fe09dc80191bccdbefe9ef1 Mon Sep 17 00:00:00 2001 From: Tommy Date: Wed, 21 Jul 2021 15:55:15 -0700 Subject: [PATCH] Fix comment --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b7b9461..8032be5 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ trim_string() { # Remove all trailing white-space. # '${trim##*[![:space:]]}': Strip everything but trailing white-space. - # '${trim#${XXX}}': Remove the white-space from the end of the string. + # '${trim%${XXX}}': Remove the white-space from the end of the string. trim=${trim%${trim##*[![:space:]]}} printf '%s\n' "$trim"