Skip to content

Commit 49fc6e0

Browse files
committed
Add the weak count in the RC
1 parent a20d3f1 commit 49fc6e0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/smart-pointers/rc.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ pointers and the value:
2424

2525
```bob
2626
Stack Heap
27-
.- - - - - - - -. .- - - - - - - - - - - - - - - - -.
28-
: : : :
29-
: +-----+ : : +-----------+-------------+ :
30-
: a: | o---|---:--+--:-->| count: 2 | value: 10 | :
31-
: +-----+ : | : +-----------+-------------+ :
32-
: b: | o---|---:--+ : :
33-
: +-----+ : `- - - - - - - - - - - - - - - - -'
27+
.- - - - - - - -. .- - - - - - - - - - - - - - - - - - - - -.
28+
: : : :
29+
: +-----+ : : +-----------+---------+-----------+ :
30+
: a: | o---|---:--+--:-->| strong: 2 | weak: 0 | value: 10 | :
31+
: +-----+ : | : +-----------+---------+-----------+ :
32+
: b: | o---|---:--+ : :
33+
: +-----+ : `- - - - - - - - - - - - - - - - - - - - -'
3434
: :
3535
`- - - - - - - -'
3636
```

0 commit comments

Comments
 (0)