]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
contrib: Fix typo in function name in check_GNU_style_lib.py
authorJonathan Wakely <jwakely@redhat.com>
Thu, 4 Dec 2025 09:41:15 +0000 (09:41 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 4 Dec 2025 09:47:05 +0000 (09:47 +0000)
contrib/ChangeLog:

* check_GNU_style_lib.py (TrailinigOperatorCheck): Rename to
TrailingOperatorCheck.

contrib/check_GNU_style_lib.py

index 8b930ef6bdb3e615eebf7aa8b9c1c6e82903c316..faf30c4d9a2ed9549d1cb4f84eeb9e929d228928 100755 (executable)
@@ -217,7 +217,7 @@ class BracesOnSeparateLineCheck:
                 line[:m.start(2)] + error_string(m.group(2)) + line[m.end(2):],
                 'braces should be on a separate line', m.start(2))
 
-class TrailinigOperatorCheck:
+class TrailingOperatorCheck:
     def __init__(self):
         regex = r'^\s.*(([^a-zA-Z_]\*)|([-%<=&|^?])|([^*]/)|([^:][+]))$'
         self.re = re.compile(regex)
@@ -272,7 +272,7 @@ def check_GNU_style_file(file, format):
         SentenceSeparatorCheck(), SentenceEndOfCommentCheck(),
         SentenceDotEndCheck(), FunctionParenthesisCheck(),
         SquareBracketCheck(), ClosingParenthesisCheck(),
-        BracesOnSeparateLineCheck(), TrailinigOperatorCheck(),
+        BracesOnSeparateLineCheck(), TrailingOperatorCheck(),
         SpacesAndTabsMixedCheck()]
     errors = []