mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
Typos in comments
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -539,14 +539,14 @@ def skip_comments(line, stream):
|
|||||||
continuation = line
|
continuation = line
|
||||||
while continuation.endswith('\\\n'):
|
while continuation.endswith('\\\n'):
|
||||||
# This errors out if the file ends with an unfinished line
|
# This errors out if the file ends with an unfinished line
|
||||||
# comment. That's acceptable to not complicat the code further.
|
# comment. That's acceptable to not complicate the code further.
|
||||||
continuation = next(stream)
|
continuation = next(stream)
|
||||||
return line[:opening.start(0)].rstrip() + '\n'
|
return line[:opening.start(0)].rstrip() + '\n'
|
||||||
# Parsing /*...*/, looking for the end
|
# Parsing /*...*/, looking for the end
|
||||||
closing = line.find('*/', opening.end(0))
|
closing = line.find('*/', opening.end(0))
|
||||||
while closing == -1:
|
while closing == -1:
|
||||||
# This errors out if the file ends with an unfinished block
|
# This errors out if the file ends with an unfinished block
|
||||||
# comment. That's acceptable to not complicat the code further.
|
# comment. That's acceptable to not complicate the code further.
|
||||||
line += next(stream)
|
line += next(stream)
|
||||||
closing = line.find('*/', opening.end(0))
|
closing = line.find('*/', opening.end(0))
|
||||||
pos = closing + 2
|
pos = closing + 2
|
||||||
|
Reference in New Issue
Block a user