Skip to content

Commit edbdf98

Browse files
authored
PEP 814: Fix typos (#4708)
1 parent daa024d commit edbdf98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

peps/pep-0814.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ Construction
8080
* ``frozendict(collection, **kwargs)`` combines the two previous
8181
constructions.
8282

83-
Keys must be hashable and so immutable, but values can be mutable.
84-
Using immutable values creates a hashtable ``frozendict``.
83+
Keys must be hashable and therefore immutable, but values can be mutable.
84+
Using immutable values creates a hashable ``frozendict``.
8585

8686
Creating a ``frozendict`` from a ``dict``, ``frozendict(dict)``, has a
8787
complexity of *O*\ (*n*): items are copied (shallow copy).
@@ -164,7 +164,7 @@ See also :pep:`584` "Add Union Operators To dict".
164164
Copy
165165
----
166166

167-
``frozencopy.copy()`` returns a shallow copy. In CPython, it simply
167+
``frozendict.copy()`` returns a shallow copy. In CPython, it simply
168168
returns the same ``frozendict`` (new reference).
169169

170170
Use ``copy.deepcopy()`` to get a deep copy.

0 commit comments

Comments
 (0)