8000 Typo fixes · python/cpython@121c98c · GitHub
[go: up one dir, main page]

Skip to content

Commit 121c98c

Browse files
committed
Typo fixes
1 parent c709584 commit 121c98c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/lib/libcollections.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ \subsubsection{\class{defaultdict} Examples \label{defaultdict-examples}}
279279
When each key is encountered for the first time, it is not already in the
280280
mapping; so an entry is automatically created using the
281281
\member{default_factory} function which returns an empty \class{list}. The
282-
\method{list.append()} operation then attaches the value the new list. When
282+
\method{list.append()} operation then attaches the value to the new list. When
283283
keys are encountered again, the look-up proceeds normally (returning the list
284284
for that key) and the \method{list.append()} operation adds another value to
285285
the list. This technique is simpler and faster than an equivalent technique
@@ -308,7 +308,7 @@ \subsubsection{\class{defaultdict} Examples \label{defaultdict-examples}}
308308
[('i', 4), ('p', 2), ('s', 4), ('m', 1)]
309309
\end{verbatim}
310310

311-
When a letter in first encountered, it is missing from the mapping, so the
311+
When a letter is first encountered, it is missing from the mapping, so the
312312
\member{default_factory} function calls \function{int()} to supply a default
313313
count of zero. The increment operation then builds of the count for each
314314
letter. This technique makes counting simpler and faster than an equivalent

0 commit comments

Comments
 (0)
0