mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
[contrib] Fix typo in check_GNU_style_lib.py
Fix typo: TrailinigOperatorCheck -> TrailingOperatorCheck.
This commit is contained in:
parent
83bf56647c
commit
77f91fd4f1
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue