Skip to content

Commit 721c454

Browse files
author
marat
committed
Fix function names and doctests
1 parent dae41e0 commit 721c454

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/library/turtle.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ Turtle motion
531531

532532
* By default, 360.0 units form a full circle (degrees).
533533
* After calling :func:`radians`, ``2*math.pi`` units form a full circle.
534-
* Custom values can be set with :func:`degrees(fullcircle)`.
534+
* Custom values can be set with :func:`degrees`.
535535

536536
Orientation of the turn depends in the current turtle mode,
537537
see :func:`mode`.
@@ -564,7 +564,7 @@ Turtle motion
564564

565565
* By default, 360.0 units form a full circle (degrees).
566566
* After calling :func:`radians`, ``2*math.pi`` units form a full circle.
567-
* Custom values can be set with :func:`degrees(fullcircle)`.
567+
* Custom values can be set with :func:`degrees`.
568568

569569
Orientation of the turn depends in the current turtle mode,
570570
see :func:`mode`.
@@ -1054,6 +1054,7 @@ Settings for measurement
10541054

10551055
>>> # Change angle measurement unit to radians (where a full circle
10561056
>>> # equals 2π radians, so 90 degrees becomes π/2 radians)
1057+
>>> import math
10571058
>>> turtle.degrees(2*math.pi)
10581059
>>> turtle.heading()
10591060
1.5707963267948966
@@ -1064,7 +1065,7 @@ Settings for measurement
10641065
Set the angle measurement unit to radians.
10651066

10661067
Equivalent to::
1067-
1068+
10681069
degrees(2*math.pi)
10691070

10701071
After this call, one full circle correspond to

0 commit comments

Comments
 (0)