]> granicus.if.org Git - python/commitdiff
Issue #24269: Minor doc fixups.
authorRaymond Hettinger <python@rcn.com>
Sat, 23 May 2015 15:57:58 +0000 (08:57 -0700)
committerRaymond Hettinger <python@rcn.com>
Sat, 23 May 2015 15:57:58 +0000 (08:57 -0700)
Doc/library/collections.rst

index 3c4d175d168719a980c4736259cee7eb9f2df8c1..f2befe7c08e25ad9a7941e538f02992342d3196c 100644 (file)
@@ -387,7 +387,7 @@ or subtracting from an empty counter.
       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 @@ or subtracting from an empty counter.
         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 @@ or subtracting from an empty counter.
 
     .. 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`.