From 23d45f4744519915ea09662da6fcfd92c37b92a9 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 20 Dec 2001 23:54:56 +0000 Subject: Fix up some examples in the tutorial so we don't contradict our own advice on docstrings. This fixes SF bug #495601. --- Doc/tut/tut.tex | 4 ++-- 1 file 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: -- cgit v0.12