From e9f15897dd5b751f23e7dcd381d60ef64ae94b9a Mon Sep 17 00:00:00 2001 From: JirCep Date: Sun, 11 Sep 2022 23:14:59 +0200 Subject: [PATCH] None is for 1st time `None` shows for 1st time in execution. --- src/ch15-06-reference-cycles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch15-06-reference-cycles.md b/src/ch15-06-reference-cycles.md index 4b55d88a6c..080cb4a855 100644 --- a/src/ch15-06-reference-cycles.md +++ b/src/ch15-06-reference-cycles.md @@ -284,7 +284,7 @@ from `leaf.parent` has no bearing on whether or not `Node` is dropped, so we don’t get any memory leaks! If we try to access the parent of `leaf` after the end of the scope, we’ll get -`None` again. At the end of the program, the `Rc` in `leaf` has a strong +`None`. At the end of the program, the `Rc` in `leaf` has a strong count of 1 and a weak count of 0, because the variable `leaf` is now the only reference to the `Rc` again.