Skip to content

Commit 174d00b

Browse files
committed
Typos
1 parent bdb9182 commit 174d00b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ String
218218
<bool> = <str>.endswith(<sub_str>) # Pass tuple of strings for multiple options.
219219
<int> = <str>.index(<sub_str>) # Returns first index of a substring.
220220
<bool> = <str>.isnumeric() # True if string contains only numeric characters.
221-
<list> = textwrap.wrap(<str>, width) # Nicely breakes string into lines.
221+
<list> = textwrap.wrap(<str>, width) # Nicely breaks string into lines.
222222
```
223223

224224
### Char
@@ -251,7 +251,7 @@ import re
251251
<list> = re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches.
252252
<Match> = re.search(<regex>, text) # Searches for first occurrence of pattern.
253253
<Match> = re.match(<regex>, text) # Searches only at the beginning of the string.
254-
<Match_iter> = re.finditer(<regex>, text) # Searches for all occurences of pattern.
254+
<Match_iter> = re.finditer(<regex>, text) # Searches for all occurrences of pattern.
255255
```
256256

257257
* **Parameter 'flags=re.IGNORECASE' can be used with all functions. Parameter 'flags=re.DOTALL' makes dot also accept newline.**
@@ -485,7 +485,7 @@ from enum import Enum
485485
Direction = Enum('Direction', 'n e s w')
486486
Cutlery = Enum('Cutlery', {'knife': 1, 'fork': 2, 'spoon': 3})
487487

488-
# Warrning: Objects will share the objects that are initialized in the dict!
488+
# Warning: Objects will share the objects that are initialized in the dictionary!
489489
Creature = type('Creature', (), {'position': Point(0, 0), 'direction': Direction.n})
490490
creature = Creature()
491491
```

0 commit comments

Comments
 (0)