]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Fix a "doctest" block in `Doc/library/turtle.rst` (GH-128831) (#128836)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Jan 2025 15:26:46 +0000 (16:26 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2025 15:26:46 +0000 (15:26 +0000)
Fix a "doctest" block in `Doc/library/turtle.rst` (GH-128831)
(cherry picked from commit 1598e18a659ef3a533caa0a79a489a3ed1d80bdd)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Doc/library/turtle.rst

index ea5e21f1da48d01d7694c71717b62b33b35bc375..a3954bea67297812c72924c67369292310a1a02d 100644 (file)
@@ -979,8 +979,8 @@ Settings for measurement
       >>> turtle.heading()
       90.0
 
-      Change angle measurement unit to grad (also known as gon,
-      grade, or gradian and equals 1/100-th of the right angle.)
+      >>> # Change angle measurement unit to grad (also known as gon,
+      >>> # grade, or gradian and equals 1/100-th of the right angle.)
       >>> turtle.degrees(400.0)
       >>> turtle.heading()
       100.0