correct function attribute typo

Message ID 640effa5-e1d6-94fe-cb8f-978d8a94f931@jguk.org
State Committed
Commit 0e38aedc6af7c4f4b5d46fb90c4eeb3011ad8369
Headers
Series correct function attribute typo |

Commit Message

Jonny Grant March 16, 2023, 10:37 p.m. UTC
  Hello
There's a typo in the common function attribute docs, "nonnul" which this patch corrects.

https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes

gcc/ChangeLog
2023-03-16  Jonny Grant  <jg@jguk.org>
	* doc/extend.texi: correct function attribute typo

---
 gcc/doc/extend.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Sandra Loosemore March 19, 2023, 1:30 a.m. UTC | #1
On 3/16/23 16:37, Jonny Grant wrote:
> Hello
> There's a typo in the common function attribute docs, "nonnul" which this patch corrects.

Thank you!  I've pushed this patch.

-Sandra
  

Patch

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index e0c5357291b..91dfdef4461 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -3657,7 +3657,7 @@  marked with nonnull is compared with null, and
 @option{-Wnonnull-compare} option is enabled, a warning is issued.
 @xref{Warning Options}.
 @item The compiler may also perform optimizations based on the
-knowledge that @code{nonnul} parameters cannot be null.  This can
+knowledge that @code{nonnull} parameters cannot be null.  This can
 currently not be disabled other than by removing the nonnull
 attribute.
 @end itemize