Skip to content

Commit 87632cf

Browse files
willy-bmiss-islington
authored andcommitted
gh-156233: Fix typos and code snippet errors in the docs (GH-156475)
(cherry picked from commit 9f90a86) Co-authored-by: Willy Bruns <adde.animulis@gmail.com>
1 parent 89926c6 commit 87632cf

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/howto/logging-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3925,7 +3925,7 @@ subclassed handler which looks something like this::
39253925

39263926
You'll need to be familiar with RFC 5424 to fully understand the above code, and it
39273927
may be that you have slightly different needs (e.g. for how you pass structural data
3928-
to the log). Nevertheless, the above should be adaptable to your speciric needs. With
3928+
to the log). Nevertheless, the above should be adaptable to your specific needs. With
39293929
the above handler, you'd pass structured data using something like this::
39303930

39313931
sd = {

Doc/howto/mro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ prescription:
189189
the tail of any of the other lists, then add it to the linearization
190190
of C and remove it from the lists in the merge, otherwise look at the
191191
head of the next list and take it, if it is a good head. Then repeat
192-
the operation until all the class are removed or it is impossible to
192+
the operation until all the classes are removed or it is impossible to
193193
find good heads. In this case, it is impossible to construct the
194194
merge, Python 2.3 will refuse to create the class C and will raise an
195195
exception.*

Doc/library/logging.config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ following configuration::
558558
'bar' : 'baz',
559559
'spam' : 99.9,
560560
'answer' : 42,
561-
'.' {
561+
'.' : {
562562
'foo': 'bar',
563563
'baz': 'bozz'
564564
}

Doc/library/pdb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ can be overridden by the local file.
833833
def inner(x):
834834
1 / x
835835

836-
out()
836+
out()
837837

838838
calling ``pdb.pm()`` will allow to move between exceptions::
839839

0 commit comments

Comments
 (0)