book: typo fixes

fixes #104
This commit is contained in:
Changkun Ou
2020-07-26 11:04:07 +02:00
parent bfd2f7caaf
commit 1421f372e0

View File

@@ -148,13 +148,13 @@ struct B;
struct A { struct A {
std::shared_ptr<B> pointer; std::shared_ptr<B> pointer;
~A() { ~A() {
std::cout << "A 被销毁" << std::end; std::cout << "A 被销毁" << std::endl;
} }
}; };
struct B { struct B {
std::shared_ptr<A> pointer; std::shared_ptr<A> pointer;
~B() { ~B() {
std::cout << "B 被销毁" << std::end; std::cout << "B 被销毁" << std::endl;
} }
}; };
int main() { int main() {