summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/lib/libcsv.tex3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/lib/libcsv.tex b/Doc/lib/libcsv.tex
index 86d1025..22cfda5 100644
--- a/Doc/lib/libcsv.tex
+++ b/Doc/lib/libcsv.tex
@@ -421,7 +421,8 @@ easily be done:
\begin{verbatim}
import csv
-print csv.reader(['one,two,three'])[0]
+for row in csv.reader(['one,two,three']):
+ print row
\end{verbatim}
The \module{csv} module doesn't directly support reading and writing