summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <adamwheins@gmail.com>2015-05-31 21:42:03 -0400
committerAdam <adamwheins@gmail.com>2015-05-31 21:42:03 -0400
commit3db1042157204ad05484d6b42140261f849040cc (patch)
tree27a5f52fe95693c0b0d405840692f8ece482d8f9
parent462ac892179d64437b1124263402378a6054e50b (diff)
Add missing semicolons.
-rw-r--r--c++.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++.html.markdown b/c++.html.markdown
index 2c6d51a9..5cd491b9 100644
--- a/c++.html.markdown
+++ b/c++.html.markdown
@@ -288,7 +288,7 @@ public:
// Functions can also be defined inside the class body.
// Functions defined as such are automatically inlined.
- void bark() const { std::cout << name << " barks!\n" }
+ void bark() const { std::cout << name << " barks!\n"; }
// Along with constructors, C++ provides destructors.
// These are called when an object is deleted or falls out of scope.
@@ -341,7 +341,7 @@ int main() {
// This class inherits everything public and protected from the Dog class
class OwnedDog : public Dog {
- void setOwner(const std::string& dogsOwner)
+ void setOwner(const std::string& dogsOwner);
// Override the behavior of the print function for all OwnedDogs. See
// http://en.wikipedia.org/wiki/Polymorphism_(computer_science)#Subtyping