Skip to content

Commit 865c2d4

Browse files
[3.13] gh-156233: Fix typos and code snippet errors in the docs (GH-156475) (#157222)
(cherry picked from commit 9f90a86) Co-authored-by: Willy Bruns <adde.animulis@gmail.com>
1 parent c28b121 commit 865c2d4

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
@@ -3912,7 +3912,7 @@ subclassed handler which looks something like this::
39123912

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

39183918
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
@@ -720,7 +720,7 @@ can be overridden by the local file.
720720
def inner(x):
721721
1 / x
722722

723-
out()
723+
out()
724724

725725
calling ``pdb.pm()`` will allow to move between exceptions::
726726

0 commit comments

Comments
 (0)