Changes Example to Example
This commit is contained in:
Satwik Kansal 2017-09-01 19:11:57 -07:00 committed by GitHub
commit 9d0bba8c4c
1 changed files with 1 additions and 1 deletions

2
README.md vendored
View File

@ -804,7 +804,7 @@ def some_func(default_arg=[]):
(['some_string', 'some_string'],)
```
- A common practice to avoid bugs due to mutable arguments is to assign `None` as the default value and later check if any value is passed to the function corresponding to that argument. Examlple:
- A common practice to avoid bugs due to mutable arguments is to assign `None` as the default value and later check if any value is passed to the function corresponding to that argument. Example:
```py
def some_func(default_arg=None):