]> granicus.if.org Git - python/commitdiff
Use "x" instead of "i" for s.index and s.count entries in sequence ops table.
authorZachary Ware <zachary.ware@gmail.com>
Thu, 20 Mar 2014 16:00:29 +0000 (11:00 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Thu, 20 Mar 2014 16:00:29 +0000 (11:00 -0500)
Suggested by Bruce Esrig on docs@.

Doc/library/stdtypes.rst

index 442a21447292c3140fa388a0b39dcb707186d2b4..b474114b103ec6cfb9778b36e464f4bc3e04bd14 100644 (file)
@@ -754,11 +754,11 @@ are sequences of the same type; *n*, *i* and *j* are integers:
 +------------------+--------------------------------+----------+
 | ``max(s)``       | largest item of *s*            |          |
 +------------------+--------------------------------+----------+
-| ``s.index(i)``   | index of the first occurrence  |          |
-|                  | of *i* in *s*                  |          |
+| ``s.index(x)``   | index of the first occurrence  |          |
+|                  | of *x* in *s*                  |          |
 +------------------+--------------------------------+----------+
-| ``s.count(i)``   | total number of occurrences of |          |
-|                  | *i* in *s*                     |          |
+| ``s.count(x)``   | total number of occurrences of |          |
+|                  | *x* in *s*                     |          |
 +------------------+--------------------------------+----------+
 
 Sequence types also support comparisons. In particular, tuples and lists