Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/cheatsheet/manipulating-strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ An optional second argument to `rjust()` and `ljust()` will specify a fill chara

## The Count Method

Counts the number of occurences of a given character or substring in the string it is applied to. Can be optionally provided start and end index.
Counts the number of occurrences of a given character or substring in the string it is applied to. Can be optionally provided start and end index.

```python
>>> sentence = 'one sheep two sheep three sheep four'
Expand Down