diff options
| author | Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com> | 2017-02-25 23:13:33 +0200 |
|---|---|---|
| committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-02-25 13:13:33 -0800 |
| commit | 53c1892dc3de1de612b1cf95dc7bf09f82c1babf (patch) | |
| tree | d0be16241e201fc6f851c21796e057c069d91381 /Doc/tutorial/datastructures.rst | |
| parent | 6329aea78e3627d250009aa5aaaf47cd11587f4d (diff) | |
| download | cpython-git-53c1892dc3de1de612b1cf95dc7bf09f82c1babf.tar.gz | |
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
Diffstat (limited to 'Doc/tutorial/datastructures.rst')
| -rw-r--r-- | Doc/tutorial/datastructures.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 953a68b44a..6140ece046 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -22,11 +22,11 @@ objects: Add an item to the end of the list. Equivalent to ``a[len(a):] = [x]``. -.. method:: list.extend(L) +.. method:: list.extend(iterable) :noindex: - Extend the list by appending all the items in the given list. Equivalent to - ``a[len(a):] = L``. + Extend the list by appending all the items from the iterable. Equivalent to + ``a[len(a):] = iterable``. .. method:: list.insert(i, x) @@ -68,7 +68,7 @@ objects: The optional arguments *start* and *end* are interpreted as in the slice notation and are used to limit the search to a particular subsequence of - *x*. The returned index is computed relative to the beginning of the full + the list. The returned index is computed relative to the beginning of the full sequence rather than the *start* argument. |
