Skip to content

Fix small typos in introduction and datastructures of tutorial #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/tutorial/datastructures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.


Expand Down
2 changes: 1 addition & 1 deletion Doc/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down