summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--c.html.markdown2
-rw-r--r--php.html.markdown2
-rw-r--r--python.html.markdown2
3 files changed, 3 insertions, 3 deletions
diff --git a/c.html.markdown b/c.html.markdown
index f5b6245d..f2b9047b 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -293,7 +293,7 @@ function_1();
// <return type> <function name>(<args>)
int add_two_ints(int x1, int x2){
- return x1 + x2; // Use return a return a value
+ return x1 + x2; // Use return to return a value
}
/*
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}