diff --git a/doc_src/string.txt b/doc_src/string.txt
index 1a3f2ea11..bae21dc99 100644
--- a/doc_src/string.txt
+++ b/doc_src/string.txt
@@ -57,7 +57,7 @@ The following subcommands are available:
>_ set str foo
>_ string length -q $str; echo $status
-1
+0
# Equivalent to test -n $str
\endfish
@@ -103,7 +103,7 @@ The following subcommands are available:
\fish{cli-dark}
>_ echo \\x07 | string escape
-cg
+cg
\endfish
\subsection string-example-match-glob Match Glob Examples