Skip to content

Commit 18701a0

Browse files
authored
Fix typos in 3.10 "What's new" (GH-25104)
1 parent 078a343 commit 18701a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/whatsnew/3.10.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ Several other key features:
420420
- Mapping patterns: ``{"bandwidth": b, "latency": l}`` captures the
421421
``"bandwidth"`` and ``"latency"`` values from a dict. Unlike sequence
422422
patterns, extra keys are ignored. A wildcard ``**rest`` is also
423-
supported. (But ``**_`` would be redundant, so it not allowed.)
423+
supported. (But ``**_`` would be redundant, so is not allowed.)
424424
425425
- Subpatterns may be captured using the ``as`` keyword::
426426
@@ -462,13 +462,13 @@ Optional ``EncodingWarning`` and ``encoding="locale"`` option
462462
The default encoding of :class:`TextIOWrapper` and :func:`open` is
463463
platform and locale dependent. Since UTF-8 is used on most Unix
464464
platforms, omitting ``encoding`` option when opening UTF-8 files
465-
(e.g. JSON, YAML, TOML, Markdown) is very common bug. For example::
465+
(e.g. JSON, YAML, TOML, Markdown) is a very common bug. For example::
466466
467467
# BUG: "rb" mode or encoding="utf-8" should be used.
468468
with open("data.json") as f:
469-
data = json.laod(f)
469+
data = json.load(f)
470470
471-
To find this type of bugs, optional ``EncodingWarning`` is added.
471+
To find this type of bug, optional ``EncodingWarning`` is added.
472472
It is emitted when :data:`sys.flags.warn_default_encoding <sys.flags>`
473473
is true and locale-specific default encoding is used.
474474

0 commit comments

Comments
 (0)