From 89a1f8a298d9bce6a411c7fb9d5a9aa04685977b Mon Sep 17 00:00:00 2001 From: wangyong1995626wywz Date: Fri, 11 Mar 2022 11:00:59 +0800 Subject: [PATCH] Modify the same problem as the return value variable Description Another two methods in LinkedList and vector have the same return value variables, which leads to an error in XTS compilation. You can solve this problem by changing it into different variables #I4XD1Q:Modify the same problem as the return value variable Signed-off-by: wangyong1995626wywz --- zh-cn/application-dev/reference/apis/js-apis-linkedlist.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-vector.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md b/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md index 93785e13e76..8339647ac38 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md +++ b/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md @@ -68,7 +68,7 @@ add(element: T): boolean ``` let linkedList = new LinkedList(); let result = linkedList.add("a"); -let result = linkedList.add(1); +let result1 = linkedList.add(1); let b = [1, 2, 3]; linkedList.add(b); let c = {name : "lala", age : "13"}; diff --git a/zh-cn/application-dev/reference/apis/js-apis-vector.md b/zh-cn/application-dev/reference/apis/js-apis-vector.md index 3e9285e735f..6b1644a678c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-vector.md +++ b/zh-cn/application-dev/reference/apis/js-apis-vector.md @@ -114,8 +114,8 @@ has(element: T): boolean let vector = new Vector(); let result = vector.has("Ahfbrgrbgnutfodgorrogorgrogofdfdf"); vector.add("Ahfbrgrbgnutfodgorrogorgrogofdfdf"); -let result = vector.has("Ahfbrgrbgnutfodgorrogorgrogofdfdf"); -``` +let result1 = vector.has("Ahfbrgrbgnutfodgorrogorgrogofdfdf"); +``` ### getIndexOf -- Gitee