bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
`writerows()` takes an iterable.
(cherry picked from commit a801cf164be7c62b6a6dba47ff91d6c3edb67729)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index e1290d4..08b8edc 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -452,8 +452,9 @@
.. method:: csvwriter.writerows(rows)
- Write all the *rows* parameters (a list of *row* objects as described above) to
- the writer's file object, formatted according to the current dialect.
+ Write all elements in *rows* (an iterable of *row* objects as described
+ above) to the writer's file object, formatted according to the current
+ dialect.
Writer objects have the following public attribute: