]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
doc: Fix typo in description of nonstring attribute
authorJonathan Wakely <jwakely@redhat.com>
Tue, 27 May 2025 08:11:58 +0000 (09:11 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 27 May 2025 11:15:42 +0000 (12:15 +0100)
gcc/ChangeLog:

* doc/extend.texi (Common Variable Attributes): Fix typo in
description of nonstring.

(cherry picked from commit 351e60095cfaa73b5ac69222d00e0cd4ae5725d4)

gcc/doc/extend.texi

index 0978c4c41b25ef88b0cb8c15a1e825a37dd54ae6..72b8e3720a3d7c4c289a2dfc263859d9f81b1357 100644 (file)
@@ -7336,7 +7336,7 @@ truncate the copy without appending the terminating @code{NUL} character.
 Using the attribute makes it possible to suppress the warning.  However,
 when the array is declared with the attribute the call to @code{strlen} is
 diagnosed because when the array doesn't contain a @code{NUL}-terminated
-string the call is undefined.  To copy, compare, of search non-string
+string the call is undefined.  To copy, compare, or search non-string
 character arrays use the @code{memcpy}, @code{memcmp}, @code{memchr},
 and other functions that operate on arrays of bytes.  In addition,
 calling @code{strnlen} and @code{strndup} with such arrays is safe