Skip to content

Commit

Permalink
book: fix smart pointers (changkun#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
bud-adamas authored and changkun committed Jan 8, 2020
1 parent bc4ff8f commit e5450c7
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit e5450c7

Please sign in to comment.