Skip to content

Commit 53c1892

Browse files
DimitrisJimMariatta
authored andcommitted
Fix small typos in introduction and datastructures of tutorial (GH-272)
* Fix small typos in introduction and datastructures * Use iterable instead of L in the doc for list.extend
1 parent 6329aea commit 53c1892

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Doc/tutorial/datastructures.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ objects:
2222
Add an item to the end of the list. Equivalent to ``a[len(a):] = [x]``.
2323

2424

25-
.. method:: list.extend(L)
25+
.. method:: list.extend(iterable)
2626
:noindex:
2727

28-
Extend the list by appending all the items in the given list. Equivalent to
29-
``a[len(a):] = L``.
28+
Extend the list by appending all the items from the iterable. Equivalent to
29+
``a[len(a):] = iterable``.
3030

3131

3232
.. method:: list.insert(i, x)
@@ -68,7 +68,7 @@ objects:
6868

6969
The optional arguments *start* and *end* are interpreted as in the slice
7070
notation and are used to limit the search to a particular subsequence of
71-
*x*. The returned index is computed relative to the beginning of the full
71+
the list. The returned index is computed relative to the beginning of the full
7272
sequence rather than the *start* argument.
7373

7474

Doc/tutorial/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ The built-in function :func:`len` returns the length of a string::
359359
Information about string formatting with :meth:`str.format`.
360360

361361
:ref:`old-string-formatting`
362-
The old formatting operations invoked when strings and Unicode strings are
362+
The old formatting operations invoked when strings are
363363
the left operand of the ``%`` operator are described in more detail here.
364364

365365

0 commit comments

Comments
 (0)