diff options
author | Fred Drake <fdrake@acm.org> | 2001-12-20 23:54:56 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-12-20 23:54:56 (GMT) |
commit | 23d45f4744519915ea09662da6fcfd92c37b92a9 (patch) | |
tree | 04dfc6cbc24ed5a090d95a53a40177ca39556e4f /Doc | |
parent | 6bc62c49510fd3a9776c8975aa72aad7a7b39e51 (diff) | |
download | cpython-23d45f4744519915ea09662da6fcfd92c37b92a9.zip cpython-23d45f4744519915ea09662da6fcfd92c37b92a9.tar.gz cpython-23d45f4744519915ea09662da6fcfd92c37b92a9.tar.bz2 |
Fix up some examples in the tutorial so we don't contradict our own
advice on docstrings.
This fixes SF bug #495601.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tut/tut.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 03dd267..608388b 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -1228,7 +1228,7 @@ arbitrary boundary: \begin{verbatim} >>> def fib(n): # write Fibonacci series up to n -... "Print a Fibonacci series up to n" +... """Print a Fibonacci series up to n.""" ... a, b = 0, 1 ... while b < n: ... print b, @@ -1306,7 +1306,7 @@ the Fibonacci series, instead of printing it: \begin{verbatim} >>> def fib2(n): # return Fibonacci series up to n -... "Return a list containing the Fibonacci series up to n" +... """Return a list containing the Fibonacci series up to n.""" ... result = [] ... a, b = 0, 1 ... while b < n: |