Skip to content

Commit

Permalink
Fix typo in docs
Browse files Browse the repository at this point in the history
Fix #374
  • Loading branch information
amyreese committed Aug 22, 2023
1 parent 79bed4c commit 6f71385
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/builtins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Built-in Rules

.. attribute:: MESSAGE

Comparisons to singleton primitives should not be done with == or !=, as they check equality rather than identiy. Use `is` or `is not` instead.
Comparisons to singleton primitives should not be done with == or !=, as they check equality rather than identity. Use `is` or `is not` instead.

.. attribute:: AUTOFIX
:type: Yes
Expand Down
2 changes: 1 addition & 1 deletion src/fixit/rules/compare_singleton_primitives_by_is.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CompareSingletonPrimitivesByIs(LintRule):
"""

MESSAGE: str = (
"Comparisons to singleton primitives should not be done with == or !=, as they check equality rather than identiy."
"Comparisons to singleton primitives should not be done with == or !=, as they check equality rather than identity."
+ " Use `is` or `is not` instead."
)
METADATA_DEPENDENCIES = (QualifiedNameProvider,)
Expand Down

0 comments on commit 6f71385

Please sign in to comment.