diff --git a/book/zh-cn/05-pointers.md b/book/zh-cn/05-pointers.md index 7b1cf75..99d76a4 100644 --- a/book/zh-cn/05-pointers.md +++ b/book/zh-cn/05-pointers.md @@ -148,13 +148,13 @@ struct B; struct A { std::shared_ptr pointer; ~A() { - std::cout << "A 被销毁" << std::end; + std::cout << "A 被销毁" << std::endl; } }; struct B { std::shared_ptr pointer; ~B() { - std::cout << "B 被销毁" << std::end; + std::cout << "B 被销毁" << std::endl; } }; int main() {