From: Sandro Tosi Date: Sun, 7 Aug 2011 15:09:15 +0000 (+0200) Subject: #12677: correct turtle orientation in doc X-Git-Tag: v2.7.3rc1~530 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1381a31e39ceb775585cacbd5e7f43e91a162786;p=python #12677: correct turtle orientation in doc --- diff --git a/Demo/turtle/about_turtle.txt b/Demo/turtle/about_turtle.txt index a42800b0cb..4d290beda4 100644 --- a/Demo/turtle/about_turtle.txt +++ b/Demo/turtle/about_turtle.txt @@ -7,10 +7,10 @@ Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966. -Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it +Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the command turtle.forward(15), and it moves (on-screen!) 15 pixels in the direction it is facing, drawing a line as it moves. Give it the -command turtle.left(25), and it rotates in-place 25 degrees clockwise. +command turtle.right(25), and it rotates in-place 25 degrees clockwise. By combining together these and similar commands, intricate shapes and pictures can easily be drawn. diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst index 129ec0e068..98c07ca96f 100644 --- a/Doc/library/turtle.rst +++ b/Doc/library/turtle.rst @@ -18,10 +18,10 @@ Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966. -Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it the +Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the direction it is facing, drawing a line as it moves. Give it the command -``turtle.left(25)``, and it rotates in-place 25 degrees clockwise. +``turtle.right(25)``, and it rotates in-place 25 degrees clockwise. By combining together these and similar commands, intricate shapes and pictures can easily be drawn. diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py index a003433273..4230d6871b 100644 --- a/Lib/lib-tk/turtle.py +++ b/Lib/lib-tk/turtle.py @@ -27,10 +27,10 @@ Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966. -Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it +Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the command turtle.forward(15), and it moves (on-screen!) 15 pixels in the direction it is facing, drawing a line as it moves. Give it the -command turtle.left(25), and it rotates in-place 25 degrees clockwise. +command turtle.right(25), and it rotates in-place 25 degrees clockwise. By combining together these and similar commands, intricate shapes and pictures can easily be drawn.