Skip to content

Fixing typos in turtle.rst #24376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Doc/library/turtle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ More drawing control
:param font: a triple (fontname, fontsize, fonttype)

Write text - the string representation of *arg* - at the current turtle
position according to *align* ("left", "center" or right") and with the given
position according to *align* ("left", "center" or "right") and with the given
font. If *move* is true, the pen is moved to the bottom-right corner of the
text. By default, *move* is ``False``.

Expand Down Expand Up @@ -1192,7 +1192,7 @@ Appearance
:func:`shapesize`.
- "noresize": no adaption of the turtle's appearance takes place.

resizemode("user") is called by :func:`shapesize` when used with arguments.
``resizemode("user")`` is called by :func:`shapesize` when used with arguments.

.. doctest::
:skipif: _tkinter is None
Expand Down Expand Up @@ -1330,7 +1330,7 @@ Appearance
matrix as a tuple of 4 elements.
Otherwise set the given elements and transform the turtleshape
according to the matrix consisting of first row t11, t12 and
second row t21, 22. The determinant t11 * t22 - t12 * t21 must not be
second row t21, t22. The determinant t11 * t22 - t12 * t21 must not be
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Translating the documentation helps to find typo 😉

zero, otherwise an error is raised.
Modify stretchfactor, shearfactor and tiltangle according to the
given matrix.
Expand Down Expand Up @@ -1513,7 +1513,7 @@ Special Turtle methods

:param size: an integer or ``None``

Set or disable undobuffer. If *size* is an integer an empty undobuffer of
Set or disable undobuffer. If *size* is an integer, an empty undobuffer of
given size is installed. *size* gives the maximum number of turtle actions
that can be undone by the :func:`undo` method/function. If *size* is
``None``, the undobuffer is disabled.
Expand Down Expand Up @@ -1821,7 +1821,7 @@ Using screen events
existing bindings are removed.

Example for a TurtleScreen instance named ``screen`` and a Turtle instance
named turtle:
named ``turtle``:

.. doctest::
:skipif: _tkinter is None
Expand Down Expand Up @@ -2048,7 +2048,7 @@ Methods specific to Screen, not inherited from TurtleScreen

.. function:: exitonclick()

Bind bye() method to mouse clicks on the Screen.
Bind ``bye()`` method to mouse clicks on the Screen.


If the value "using_IDLE" in the configuration dictionary is ``False``
Expand Down