[committed] docs: Fix 2 typos

Message ID ZbIYB0YoTUcwJ+9P@tucnak
State Unresolved
Headers
Series [committed] docs: Fix 2 typos |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Jakub Jelinek Jan. 25, 2024, 8:12 a.m. UTC
  Hi!

When looking into PR113572, I've noticed a typo in VECTOR_CST documentation
and grep found pasto of it elsewhere.

Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk
as obvious.

2024-01-25  Jakub Jelinek  <jakub@redhat.com>

	* doc/generic.texi (VECTOR_CST): Fix typo - petterns -> patterns.
	* doc/rtl.texi (CONST_VECTOR): Likewise.


	Jakub
  

Patch

--- gcc/doc/generic.texi.jj	2024-01-03 12:07:05.393689002 +0100
+++ gcc/doc/generic.texi	2024-01-24 20:40:29.430727745 +0100
@@ -1153,7 +1153,7 @@  vector.  For example @{ 0, 1 @} could be
 one element each or one pattern with two elements (@var{base0} and
 @var{base1}).  The canonical encoding is always the one with the
 fewest patterns or (if both encodings have the same number of
-petterns) the one with the fewest encoded elements.
+patterns) the one with the fewest encoded elements.
 
 @samp{vector_cst_encoding_nelts (@var{v})} gives the total number of
 encoded elements in @var{v}, which is 6 in the example above.
--- gcc/doc/rtl.texi.jj	2024-01-03 12:07:04.050707817 +0100
+++ gcc/doc/rtl.texi	2024-01-24 20:41:00.326299026 +0100
@@ -1843,7 +1843,7 @@  vector.  For example @{ 0, 1 @} could be
 one element each or one pattern with two elements (@var{base0} and
 @var{base1}).  The canonical encoding is always the one with the
 fewest patterns or (if both encodings have the same number of
-petterns) the one with the fewest encoded elements.
+patterns) the one with the fewest encoded elements.
 
 @samp{const_vector_encoding_nelts (@var{v})} gives the total number of
 encoded elements in @var{v}, which is 6 in the example above.