Skip to content

Commit 5e2f622

Browse files
difflib: fix typyos in docstrings
1 parent 9a822c4 commit 5e2f622

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/difflib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ def __init__(self, linejunk=None, charjunk=None, autojunk=True):
828828
module-level function `IS_CHARACTER_JUNK` may be used to filter out
829829
whitespace characters (a blank or tab; **note**: bad idea to include
830830
newline in this!). Use of IS_CHARACTER_JUNK is recommended.
831-
- `autojunk`: automatic junk diff heruistic
831+
- `autojunk`: automatic junk diff heuristic
832832
(refer to :class:`SequenceMatcher` for specifics).
833833
"""
834834

@@ -1123,7 +1123,7 @@ def unified_diff(a, b, fromfile='', tofile='', fromfiledate='',
11231123
'git diff --color'. Even if enabled, it can be
11241124
controlled using environment variables such as 'NO_COLOR'.
11251125
1126-
Set `autojunk` to False if you don't want automated junk heruistic.
1126+
Set `autojunk` to False if you don't want automated junk heuristic.
11271127
See details in :class:`SequenceMatcher.
11281128
11291129
The unidiff format normally has a header for filenames and modification
@@ -1222,7 +1222,7 @@ def context_diff(a, b, fromfile='', tofile='',
12221222
The modification times are normally expressed in the ISO 8601 format.
12231223
If not specified, the strings default to blanks.
12241224
1225-
The kwarg `autojunk` sets up automated junk hereuistic with
1225+
The kwarg `autojunk` sets up automated junk heuristic with
12261226
:class:`SequenceMatcher`, which is used under the hood in this function.
12271227
See documentation of :class:`SequenceMatcher` for details.
12281228

0 commit comments

Comments
 (0)