summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-02-23 15:51:27 +0000
committerGeorg Brandl <georg@python.org>2009-02-23 15:51:27 +0000
commitde196911f19836c0692643ad0bea713b6d451c8b (patch)
tree0e9365a4d7e8681afe56e7ff3bc4a2b24341de21
parent11b34d07d81969590385abfea46b90feb2a9accb (diff)
downloadcpython-git-de196911f19836c0692643ad0bea713b6d451c8b.tar.gz
#5352: str.count() counts non-overlapping instances.
-rw-r--r--Doc/library/stdtypes.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 09ba2538fa..fe78be7842 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -826,9 +826,9 @@ string functions based on regular expressions.
.. method:: str.count(sub[, start[, end]])
- Return the number of occurrences of substring *sub* in the range [*start*,
- *end*]. Optional arguments *start* and *end* are interpreted as in slice
- notation.
+ Return the number of non-overlapping occurrences of substring *sub* in the
+ range [*start*, *end*]. Optional arguments *start* and *end* are
+ interpreted as in slice notation.
.. method:: str.decode([encoding[, errors]])