Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 482b9a8

Browse files
committed
Clean up the descriptions of multi-signature functions so we do the right
thing in the index.
1 parent 3fc08d2 commit 482b9a8

1 file changed

Lines changed: 10 additions & 15 deletions

File tree

Doc/lib/libturtle.tex

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,13 @@ \section{\module{turtle} ---
7373
\end{funcdesc}
7474

7575
\begin{funcdesc}{color}{s}
76-
Set the color by giving a Tk color string.
77-
\end{funcdesc}
78-
79-
\begin{funcdesc}{color}{(r, g, b)}
80-
Set the color by giving a RGB tuple, each between 0 and 1.
81-
\end{funcdesc}
82-
83-
\begin{funcdesc}{color}{r, g, b}
84-
Set the color by giving the RGB components, each between 0 and 1.
76+
\funclineni{color}{(r, g, b)}
77+
\funclineni{color}{r, g, b}
78+
Set the pen color. In the first form, the color is specified as a
79+
Tk color specification as a string. The second form specifies the
80+
color as a tuple of the RGB values, each in the range [0..1]. For the
81+
third form, the color is specified giving the RGB values as three
82+
separate parameters (each in the range [0..1]).
8583
\end{funcdesc}
8684

8785
\begin{funcdesc}{write}{text\optional{, move}}
@@ -109,12 +107,9 @@ \section{\module{turtle} ---
109107
\end{funcdesc}
110108

111109
\begin{funcdesc}{goto}{x, y}
112-
Go to co-ordinates (\var{x}, \var{y}).
113-
\end{funcdesc}
114-
115-
\begin{funcdesc}{goto}{(x, y)}
116-
Go to co-ordinates (\var{x}, \var{y}) (specified as a tuple instead of
117-
individually).
110+
\funclineni{goto}{(x, y)}
111+
Go to co-ordinates \var{x}, \var{y}. The co-ordinates may be
112+
specified either as two separate arguments or as a 2-tuple.
118113
\end{funcdesc}
119114

120115
This module also does \code{from math import *}, so see the

0 commit comments

Comments
 (0)