diff --git a/README.md b/README.md index a715a26..e5c447c 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ String = .endswith() # Pass tuple of strings for multiple options. = .index() # Returns first index of a substring. = .isnumeric() # True if string contains only numeric characters. - = textwrap.wrap(, width) # Nicely breakes string into lines. + = textwrap.wrap(, width) # Nicely breaks string into lines. ``` ### Char @@ -251,7 +251,7 @@ import re = re.split(, text, maxsplit=0) # Use brackets in regex to keep the matches. = re.search(, text) # Searches for first occurrence of pattern. = re.match(, text) # Searches only at the beginning of the string. - = re.finditer(, text) # Searches for all occurences of pattern. + = re.finditer(, text) # Searches for all occurrences of pattern. ``` * **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 Direction = Enum('Direction', 'n e s w') Cutlery = Enum('Cutlery', {'knife': 1, 'fork': 2, 'spoon': 3}) -# Warrning: Objects will share the objects that are initialized in the dict! +# Warning: Objects will share the objects that are initialized in the dictionary! Creature = type('Creature', (), {'position': Point(0, 0), 'direction': Direction.n}) creature = Creature() ```