diff --git a/doc/man/nanorc.5 b/doc/man/nanorc.5
index 21427f5fc3bd96bf012a9ae296980ff2ced46853..0a944df5f8def3b8369a00d05f2403706fcacd6c 100644
--- a/doc/man/nanorc.5
+++ b/doc/man/nanorc.5
@@ -39,8 +39,8 @@ Options are unset by default, except for options that take an argument.
 
 Quotes inside string parameters don't have to be escaped with
 backslashes.  The last double quote in the string will be treated as its
-end.  For example, for the brackets option, "\fI'")}]>\fP" will match
-\fI'\fP, \fI"\fP, \fI)\fP, \fI}\fP, \fI]\fP, and \fI>\fP.
+end.  For example, for the brackets option, "\fI"')>]}\fP" will match
+\fI"\fP, \fI'\fP, \fI)\fP, \fI>\fP, \fI]\fP, and \fI}\fP.
 
 The supported commands and arguments are:
 
diff --git a/doc/nanorc.sample b/doc/nanorc.sample
index 9011bd29fd78120df123f28769844b4968db5879..90aa336b28cb2c49cdf24a8eb53a079120331ee2 100644
--- a/doc/nanorc.sample
+++ b/doc/nanorc.sample
@@ -11,8 +11,8 @@
 ##
 ## Quotes inside string parameters don't have to be escaped with
 ## backslashes.  The last double quote in the string will be treated as
-## its end.  For example, for the brackets option, "'")}]>" will match
-## ', ", ), }, ], and >.
+## its end.  For example, for the brackets option, ""')>]}" will match
+## ", ', ), >, ], and }.
 
 ## Use auto-indentation.
 # set autoindent