diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-02-26 06:34:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-26 06:34:51 (GMT) |
commit | b00232842c5dd0d41054a02a7800fc5f82a92beb (patch) | |
tree | ba94cb82d47eeec7f9267518adccca66c22dbfdc /Doc/tutorial | |
parent | 1a8dd944d4016593e78a7a6c3c635adee783abfd (diff) | |
download | cpython-b00232842c5dd0d41054a02a7800fc5f82a92beb.zip cpython-b00232842c5dd0d41054a02a7800fc5f82a92beb.tar.gz cpython-b00232842c5dd0d41054a02a7800fc5f82a92beb.tar.bz2 |
Fix small typos in introduction and datastructures of tutorial (GH-272) (GH-297)
(cherry picked from commit 53c1892dc3de1de612b1cf95dc7bf09f82c1babf)
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/datastructures.rst | 8 | ||||
-rw-r--r-- | Doc/tutorial/introduction.rst | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 953a68b..6140ece 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. diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 7e8ee3e..52120a0 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -359,7 +359,7 @@ The built-in function :func:`len` returns the length of a string:: Information about string formatting with :meth:`str.format`. :ref:`old-string-formatting` - The old formatting operations invoked when strings and Unicode strings are + The old formatting operations invoked when strings are the left operand of the ``%`` operator are described in more detail here. |