summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorjmcb <joelsgp@protonmail.com>2022-11-07 04:55:55 (GMT)
committerGitHub <noreply@github.com>2022-11-07 04:55:55 (GMT)
commit728e42fcf51cbb2108caf1382df224c13b53d024 (patch)
treed44af519444da7fed1a826903a1631fb0e921d97 /Doc/reference
parentd7a00f1e8eee05fc5ae97ea1ef0615feefce887b (diff)
downloadcpython-728e42fcf51cbb2108caf1382df224c13b53d024.zip
cpython-728e42fcf51cbb2108caf1382df224c13b53d024.tar.gz
cpython-728e42fcf51cbb2108caf1382df224c13b53d024.tar.bz2
doc: Formatting and typo fixes (#98974)
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/grammar.rst2
-rw-r--r--Doc/reference/simple_stmts.rst8
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/reference/grammar.rst b/Doc/reference/grammar.rst
index 59b4500..bc1db7b 100644
--- a/Doc/reference/grammar.rst
+++ b/Doc/reference/grammar.rst
@@ -12,7 +12,7 @@ and `PEG <https://en.wikipedia.org/wiki/Parsing_expression_grammar>`_.
In particular, ``&`` followed by a symbol, token or parenthesized
group indicates a positive lookahead (i.e., is required to match but
not consumed), while ``!`` indicates a negative lookahead (i.e., is
-required _not_ to match). We use the ``|`` separator to mean PEG's
+required *not* to match). We use the ``|`` separator to mean PEG's
"ordered choice" (written as ``/`` in traditional PEG grammars). See
:pep:`617` for more details on the grammar's syntax.
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index 5c9937f..c98ac81 100644
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -330,7 +330,7 @@ statement, of a variable or attribute annotation and an optional assignment stat
annotated_assignment_stmt: `augtarget` ":" `expression`
: ["=" (`starred_expression` | `yield_expression`)]
-The difference from normal :ref:`assignment` is that only single target is allowed.
+The difference from normal :ref:`assignment` is that only a single target is allowed.
For simple names as assignment targets, if in class or module scope,
the annotations are evaluated and stored in a special class or module
@@ -365,8 +365,8 @@ target, then the interpreter evaluates the target except for the last
IDEs.
.. versionchanged:: 3.8
- Now annotated assignments allow same expressions in the right hand side as
- the regular assignments. Previously, some expressions (like un-parenthesized
+ Now annotated assignments allow the same expressions in the right hand side as
+ regular assignments. Previously, some expressions (like un-parenthesized
tuple expressions) caused a syntax error.
@@ -756,7 +756,7 @@ commas) the two steps are carried out separately for each clause, just
as though the clauses had been separated out into individual import
statements.
-The details of the first step, finding and loading modules are described in
+The details of the first step, finding and loading modules, are described in
greater detail in the section on the :ref:`import system <importsystem>`,
which also describes the various types of packages and modules that can
be imported, as well as all the hooks that can be used to customize