[Python-checkins] cpython: Issue #24269: Minor doc fixups.

raymond.hettinger python-checkins at python.org
Sat May 23 17:58:10 CEST 2015


https://hg.python.org/cpython/rev/4d92ce08de6a
changeset:   96236:4d92ce08de6a
parent:      96233:c58f3e76dc6c
user:        Raymond Hettinger <python at rcn.com>
date:        Sat May 23 08:57:58 2015 -0700
summary:
  Issue #24269: Minor doc fixups.

files:
  Doc/library/collections.rst |  11 ++++++-----
  1 files changed, 6 insertions(+), 5 deletions(-)


diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -387,7 +387,7 @@
       Section 4.6.3, Exercise 19*.
 
     * To enumerate all distinct multisets of a given size over a given set of
-      elements, see :func:`itertools.combinations_with_replacement`.
+      elements, see :func:`itertools.combinations_with_replacement`:
 
             map(Counter, combinations_with_replacement('ABC', 2)) --> AA AB AC BB BC CC
 
@@ -464,10 +464,11 @@
         elements in the iterable argument.
 
 
-    .. method:: index(x[, start[, end]])
+    .. method:: index(x[, start[, stop]])
 
-        Return the position of *x* in the deque.  Returns the first match
-        or raises :exc:`ValueError` if not found.
+        Return the position of *x* in the deque (at or after index *start*
+        and before index *stop*).  Returns the first match or raises
+        :exc:`ValueError` if not found.
 
         .. versionadded:: 3.5
 
@@ -493,7 +494,7 @@
 
     .. method:: remove(value)
 
-        Removed the first occurrence of *value*.  If not found, raises a
+        Remove the first occurrence of *value*.  If not found, raises a
         :exc:`ValueError`.
 
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list