Skip to content

Commit

Permalink
Fix minor typos in docstrings (#4085)
Browse files Browse the repository at this point in the history
  • Loading branch information
exag committed Dec 4, 2023
1 parent a0e270d commit 66ec056
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/black/numerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("-"):
Expand Down
4 changes: 2 additions & 2 deletions src/black/ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 66ec056

Please sign in to comment.