doc: tfix

Message ID 20230420171855.31294-1-alx@kernel.org
State Accepted
Headers
Series doc: tfix |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Alejandro Colomar April 20, 2023, 5:18 p.m. UTC
  Remove repeated word (typo).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
---
 gcc/doc/extend.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Arsen Arsenović April 20, 2023, 6:08 p.m. UTC | #1
Alejandro Colomar via Gcc-patches <gcc-patches@gcc.gnu.org> writes:

> Remove repeated word (typo).
>
> Signed-off-by: Alejandro Colomar <alx@kernel.org>
> ---
>  gcc/doc/extend.texi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
> index fd3745c5608..cdfb25ff272 100644
> --- a/gcc/doc/extend.texi
> +++ b/gcc/doc/extend.texi
> @@ -3756,7 +3756,7 @@ take function pointer arguments.
>  The @code{optimize} attribute is used to specify that a function is to
>  be compiled with different optimization options than specified on the
>  command line.  The optimize attribute arguments of a function behave
> -behave as if appended to the command-line.
> +as if appended to the command-line.
>  
>  Valid arguments are constant non-negative integers and
>  strings.  Each numeric argument specifies an optimization @var{level}.

Please include a ChangeLog like the following:

gcc/ChangeLog:

	* doc/extend.texi (Common Function Attributes): Remove duplicate
	word.

I can add that and push for you, if you agree.

Thanks, have a most lovely night!
  

Patch

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index fd3745c5608..cdfb25ff272 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -3756,7 +3756,7 @@  take function pointer arguments.
 The @code{optimize} attribute is used to specify that a function is to
 be compiled with different optimization options than specified on the
 command line.  The optimize attribute arguments of a function behave
-behave as if appended to the command-line.
+as if appended to the command-line.
 
 Valid arguments are constant non-negative integers and
 strings.  Each numeric argument specifies an optimization @var{level}.