Fix some typos

This commit is contained in:
Jero
2019-02-11 18:26:07 +08:00
parent 02a67bbb76
commit 0c7284ce3c
5 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,7 @@
Capitalizes the first letter of a string.
Capitalizes the fist letter of the sring and then adds it with rest of the string. Omit the `lower_rest` parameter to keep the rest of the string intact, or set it to `true` to convert to lowercase.
Capitalizes the first letter of the string and then adds it with rest of the string. Omit the `lower_rest` parameter to keep the rest of the string intact, or set it to `true` to convert to lowercase.
```python
def capitalize(string, lower_rest=False):

View File

@ -2,7 +2,7 @@
Capitalizes the first letter of every word in a string.
Uses `str.title` to capitalize first letter of evry word in the string.
Uses `str.title` to capitalize first letter of every word in the string.
```python
def capitalize_every_word(string):

View File

@ -2,7 +2,7 @@
Decapitalizes the first letter of a string.
Decapitalizes the fist letter of the sring and then adds it with rest of the string. Omit the `upper_rest` parameter to keep the rest of the string intact, or set it to `true` to convert to uppercase.
Decapitalizes the first letter of the string and then adds it with rest of the string. Omit the `upper_rest` parameter to keep the rest of the string intact, or set it to `true` to convert to uppercase.
```python
def decapitalize(string, upper_rest=False):