]> 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:11:38 +0000 (12:11 +0100)
gcc/ChangeLog:

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

gcc/doc/extend.texi

index 442fce653a4091775bddabed04f2ee7ccf8a6b25..989df965ed981582ec861a36444323e360f03b2a 100644 (file)
@@ -7323,7 +7323,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