Skip to content

Commit 300edbc

Browse files
encukouhugovk
andauthored
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 4bcbafe commit 300edbc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/difflib.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ of any type, not just text, so long as the sequence elements are
3232
Junk heuristic
3333
--------------
3434

35-
:mod:`!difflib` uses a :dfn:`junk` heuristic: Some items are deemed to be
35+
:mod:`!difflib` uses a :dfn:`junk` heuristic: some items are deemed to be
3636
:dfn:`junk`, and ignored when searching for similarities.
3737
Ideally, these are uninteresting or common items, such as blank lines
3838
or whitespace.
@@ -61,7 +61,7 @@ The :mod:`!difflib` algorithm
6161
-----------------------------
6262

6363
The algorithm used in :class:`SequenceMatcher` predates, and is a little
64-
fancier than, an algorithm published in the late 1980's by Ratcliff and
64+
fancier than, an algorithm published in the late 1980s by Ratcliff and
6565
Obershelp under the hyperbolic name "gestalt pattern matching."
6666
The idea is to find the longest contiguous subsequence common to both inputs,
6767
then recursively handle the pieces of the sequences to the left and to the
@@ -156,8 +156,8 @@ Diff generation
156156

157157
Each sequence must contain individual single-line strings ending with
158158
newlines. Such sequences can be obtained from the
159-
:meth:`~io.IOBase.readlines` method of file-like objects. The delta
160-
generated also consists of newline-terminated strings, ready to be
159+
:meth:`~io.IOBase.readlines` method of file-like objects. The generated
160+
delta also consists of newline-terminated strings, ready to be
161161
printed as-is via the :meth:`~io.IOBase.writelines` method of a
162162
file-like object.
163163

0 commit comments

Comments
 (0)