Fix minor typos in docstrings (#4085)

This commit is contained in:
exag 2023-12-04 14:47:30 +09:00 committed by GitHub
parent a0e270d0f2
commit 66ec056e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ def format_hex(text: str) -> str:
def format_scientific_notation(text: str) -> str:
"""Formats a numeric string utilizing scentific notation"""
"""Formats a numeric string utilizing scientific notation"""
before, after = text.split("e")
sign = ""
if after.startswith("-"):

View File

@ -172,7 +172,7 @@ class _TopLevelStatementsVisitor(Visitor[None]):
A node visitor that converts unchanged top-level statements to
STANDALONE_COMMENT.
This is used in addition to _convert_unchanged_lines_by_flatterning, to
This is used in addition to _convert_unchanged_line_by_line, to
speed up formatting when there are unchanged top-level
classes/functions/statements.
"""
@ -302,7 +302,7 @@ def _convert_node_to_standalone_comment(node: LN) -> None:
index = node.remove()
if index is not None:
# Remove the '\n', as STANDALONE_COMMENT will have '\n' appended when
# genearting the formatted code.
# generating the formatted code.
value = str(node)[:-1]
parent.insert_child(
index,