diff --git a/README.md b/README.md index e504914..9b2467a 100644 --- a/README.md +++ b/README.md @@ -315,7 +315,7 @@ String = .startswith() # Pass tuple of strings for multiple options. = .endswith() # Pass tuple of strings for multiple options. = .find() # Returns start index of first match or -1. - = .index() # Same but raises ValueError. + = .index() # Same but raises ValueError if missing. ``` ```python diff --git a/index.html b/index.html index 2f7cea5..8313938 100644 --- a/index.html +++ b/index.html @@ -429,7 +429,7 @@ to_exclusive = <range>.stop <bool> = <str>.startswith(<sub_str>) # Pass tuple of strings for multiple options. <bool> = <str>.endswith(<sub_str>) # Pass tuple of strings for multiple options. <int> = <str>.find(<sub_str>) # Returns start index of first match or -1. -<int> = <str>.index(<sub_str>) # Same but raises ValueError. +<int> = <str>.index(<sub_str>) # Same but raises ValueError if missing.
<str>  = <str>.replace(old, new [, count])   # Replaces 'old' with 'new' at most 'count' times.
 <bool> = <str>.isnumeric()                   # True if str contains only numeric characters.