From 6e78271c6a6a6bd194733db21959856aa86c1ac4 Mon Sep 17 00:00:00 2001 From: wangyong1995626wywz Date: Mon, 7 Mar 2022 17:01:07 +0800 Subject: [PATCH] Correct the questionnaire questions raised by the test Description 1.Modify the problem trimToCurrentLength without parameters 2.Modify the problem that the descriptions of two interfaces of plainarray are consistent 3.Correct the wrong interface in lightweightset 4.Complete the missing equal case in XTS #I4WPBS:Correct the questionnaire questions raised by the test Signed-off-by: wangyong1995626wywz --- zh-cn/application-dev/reference/apis/js-apis-arraylist.md | 2 +- .../application-dev/reference/apis/js-apis-lightweightset.md | 4 ++-- zh-cn/application-dev/reference/apis/js-apis-plainarray.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-vector.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-arraylist.md b/zh-cn/application-dev/reference/apis/js-apis-arraylist.md index efda37f74d..7435c4bd4a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-arraylist.md +++ b/zh-cn/application-dev/reference/apis/js-apis-arraylist.md @@ -537,7 +537,7 @@ arrayList.add(2); arrayList.add(4); arrayList.add(5); arrayList.add(4); -arrayList.trimToCurrentLength(2); +arrayList.trimToCurrentLength(); ``` ### [Symbol.iterator] diff --git a/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md b/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md index 2780befaf7..1ff86fc190 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md @@ -193,7 +193,7 @@ let result = lightWeightSet.equal(obj); ``` -### ensureCapacityTo +### increaseCapacityTo increaseCapacityTo(minimumCapacity: number): void @@ -209,7 +209,7 @@ increaseCapacityTo(minimumCapacity: number): void ``` let lightWeightSet = new LightWeightSet(); -lightWeightSet.ensureCapacityTo(10); +lightWeightSet.increaseCapacityTo(10); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-plainarray.md b/zh-cn/application-dev/reference/apis/js-apis-plainarray.md index ab5dc6d0d6..0ff829fa74 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-plainarray.md +++ b/zh-cn/application-dev/reference/apis/js-apis-plainarray.md @@ -117,7 +117,7 @@ let result = plainArray.get(1); getIndexOfKey(key: number): number; -查找指定元素第一次出现的下标值,如果没有找到该元素返回-1。 +查找指定key第一次出现的下标值,如果没有找到该元素返回-1。 **参数:** 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 d19a085e41..3e9285e735 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-vector.md +++ b/zh-cn/application-dev/reference/apis/js-apis-vector.md @@ -540,7 +540,7 @@ vector.add(2); vector.add(4); vector.add(5); vector.add(4); -vector.trimToCurrentLength(2); +vector.trimToCurrentLength(); ``` ### toString -- GitLab