commit 4f818242f1c055b81d84be9800e3c0f5811662cf
parent 31ba8fbf635d656187c871a18d82793eae690a1a
Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
Date: Tue, 10 May 2022 22:37:27 -0300
strings: fix typo in the suffix doc
Signed-off-by: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/strings/suffix.ha b/strings/suffix.ha
@@ -23,7 +23,7 @@ export fn hasprefix(in: str, prefix: (str | rune)) bool = {
assert(!hasprefix("hello world", 'q'));
};
-// Returns true if 'in' has the given prefix.
+// Returns true if 'in' has the given suffix.
export fn hassuffix(in: str, suff: (str | rune)) bool = {
let suff = match (suff) {
case let r: rune =>