From a99e991cb9798d1c97ff97c7268072dd03992ecf Mon Sep 17 00:00:00 2001 From: josephzxy Date: Sun, 20 Jul 2025 16:12:13 +0800 Subject: [PATCH] fix: fix typo --- src/too-many-lists/persistent-stack/drop-arc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/too-many-lists/persistent-stack/drop-arc.md b/src/too-many-lists/persistent-stack/drop-arc.md index 6b7ca2a9..53f117b2 100644 --- a/src/too-many-lists/persistent-stack/drop-arc.md +++ b/src/too-many-lists/persistent-stack/drop-arc.md @@ -31,7 +31,7 @@ impl Drop for List { } ``` -这里有一个没见过的方法 `Rc::Try_unwrap` ,该方法会判断当前的 `Rc` 是否只有一个强引用,若是,则返回 `Rc` 持有的值,否则返回一个错误。 +这里有一个没见过的方法 `Rc::try_unwrap` ,该方法会判断当前的 `Rc` 是否只有一个强引用,若是,则返回 `Rc` 持有的值,否则返回一个错误。 可以看出,我们会一直 drop 到第一个被其它链表所引用的节点: ```shell