Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
智能指针访问,应该使用 ->
  • Loading branch information
bud-adamas authored Jan 7, 2020
commit cd038854c44c67a7b4051ea61b3afc8b2c676434
4 changes: 2 additions & 2 deletions book/zh-cn/05-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ struct B {
int main() {
auto a = std::make_shared<A>();
auto b = std::make_shared<B>();
a.pointer = b;
b.pointer = a;
a->pointer = b;
b->pointer = a;
}
```

Expand Down