Fix two syntax errors (missing '(' and ')' and misplaced '{').

gcc/ChangeLog:

        * doc/extend.texi (nocf_check): Fix syntax errors in example.
---
Committed as obvious.

 gcc/doc/extend.texi | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index fb117f59665b..882c0820a6e6 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -6896,15 +6896,14 @@ compiler checks for @code{nocf_check} attribute 
mismatch and reports
 a warning in case of mismatch.
 
 @smallexample
-@{
-int foo (void) __attribute__(nocf_check);
-void (*foo1)(void) __attribute__(nocf_check);
+int foo (void) __attribute__((nocf_check));
+void (*foo1)(void) __attribute__((nocf_check));
 void (*foo2)(void);
 
 /* foo's address is assumed to be valid.  */
 int
 foo (void) 
-
+@{
   /* This call site is not checked for control-flow 
      validity.  */
   (*foo1)();

base-commit: c1b9b3812dfe0cab3fc2dd9abc1f1f4afc422339
-- 
2.51.1

Reply via email to