From f4b4f73ec42071d6533af3ff435cc16bda2f9144 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Thu, 21 Dec 2023 16:16:59 +0800 Subject: [PATCH] Update Linked-List document --- docs/en/UI/Common/Utils/Linked-List.md | 2 +- docs/zh-Hans/UI/Common/Utils/Linked-List.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/UI/Common/Utils/Linked-List.md b/docs/en/UI/Common/Utils/Linked-List.md index 0c047d28e5..8c6c425e5c 100644 --- a/docs/en/UI/Common/Utils/Linked-List.md +++ b/docs/en/UI/Common/Utils/Linked-List.md @@ -958,7 +958,7 @@ list.addMany([{ x: 1 }, { x: 0 }, { x: 2 }, { x: 0 }, { x: 3 }]).tail(); // {"x":1} <-> {"x":0} <-> {"x":2} <-> {"x":0} <-> {"x":3} -list.dropByValue(0, (value, searchedValue) => value.x === searchedValue); +list.dropByValueAll(0, (value, searchedValue) => value.x === searchedValue); // {"x":1} <-> {"x":2} <-> {"x":3} ``` diff --git a/docs/zh-Hans/UI/Common/Utils/Linked-List.md b/docs/zh-Hans/UI/Common/Utils/Linked-List.md index 53c356628f..216e2d6a2d 100644 --- a/docs/zh-Hans/UI/Common/Utils/Linked-List.md +++ b/docs/zh-Hans/UI/Common/Utils/Linked-List.md @@ -925,7 +925,7 @@ list.addMany([{ x: 1 }, { x: 0 }, { x: 2 }, { x: 0 }, { x: 3 }]).tail(); // {"x":1} <-> {"x":0} <-> {"x":2} <-> {"x":0} <-> {"x":3} -list.dropByValue(0, (value, searchedValue) => value.x === searchedValue); +list.dropByValueAll(0, (value, searchedValue) => value.x === searchedValue); // {"x":1} <-> {"x":2} <-> {"x":3} ```