Skip to content

Commit

Permalink
fixed some typo in ex15.31.32.33.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
XDXX committed Sep 16, 2015
1 parent a5d5719 commit cd49012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch15/ex15.31.32.33.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// while being moved, the synthesized move constructor is called. It moves the data member
// into the new object. In this case, the shared pointer from the newly created
// object will point to the address to which the original shared pointer pointed .
// Afer the move operation, the use count of the shared pointer in the new object is 1,
// After the move operation, the use count of the shared pointer in the new object is 1,
// whereas the pointer from the original object becomes nullptr.
//
// copy assignment:
Expand All @@ -38,7 +38,7 @@
// the move operation.
//
// destroy:
// The synthesized destructor will be called. It will call the desstructor of
// The synthesized destructor will be called. It will call the destructor of
// shared_ptr which decrements the use count. If the count becomes zero, the destructor
// from shared_ptr will delete the resources it point to.
//
Expand Down

0 comments on commit cd49012

Please sign in to comment.