diff options
-rw-r--r-- | php.html.markdown | 2 | ||||
-rw-r--r-- | python.html.markdown | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/php.html.markdown b/php.html.markdown index 753f6ab1..339499eb 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -417,7 +417,7 @@ final class YouCannotExtendMe { } ``` -Classes are insantiated with the ```new``` keyword. Functions are referred to as +Classes are instantiated with the ```new``` keyword. Functions are referred to as methods if they belong to a class. ```php diff --git a/python.html.markdown b/python.html.markdown index 463556d9..2b67ab83 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -228,7 +228,7 @@ empty_set = set() some_set = set([1,2,2,3,4]) # filled_set is now set([1, 2, 3, 4]) # Since Python 2.7, {} can be used to declare a set -filled_set = {1 2 2 3 4} # => {1 2 3 4} +filled_set = {1, 2, 2, 3, 4} # => {1 2 3 4} # Add more items to a set filled_set.add(5) # filled_set is now {1, 2, 3, 4, 5} |