未验证 提交 b8fb7d47 编写于 作者: O openharmony_ci 提交者: Gitee

!1835 Correct the questionnaire questions raised by the test

Merge pull request !1835 from wangyong/threedocs
...@@ -537,7 +537,7 @@ arrayList.add(2); ...@@ -537,7 +537,7 @@ arrayList.add(2);
arrayList.add(4); arrayList.add(4);
arrayList.add(5); arrayList.add(5);
arrayList.add(4); arrayList.add(4);
arrayList.trimToCurrentLength(2); arrayList.trimToCurrentLength();
``` ```
### [Symbol.iterator] ### [Symbol.iterator]
......
...@@ -193,7 +193,7 @@ let result = lightWeightSet.equal(obj); ...@@ -193,7 +193,7 @@ let result = lightWeightSet.equal(obj);
``` ```
### ensureCapacityTo ### increaseCapacityTo
increaseCapacityTo(minimumCapacity: number): void increaseCapacityTo(minimumCapacity: number): void
...@@ -209,7 +209,7 @@ increaseCapacityTo(minimumCapacity: number): void ...@@ -209,7 +209,7 @@ increaseCapacityTo(minimumCapacity: number): void
``` ```
let lightWeightSet = new LightWeightSet(); let lightWeightSet = new LightWeightSet();
lightWeightSet.ensureCapacityTo(10); lightWeightSet.increaseCapacityTo(10);
``` ```
......
...@@ -117,7 +117,7 @@ let result = plainArray.get(1); ...@@ -117,7 +117,7 @@ let result = plainArray.get(1);
getIndexOfKey(key: number): number; getIndexOfKey(key: number): number;
查找指定元素第一次出现的下标值,如果没有找到该元素返回-1。 查找指定key第一次出现的下标值,如果没有找到该元素返回-1。
**参数:** **参数:**
......
...@@ -540,7 +540,7 @@ vector.add(2); ...@@ -540,7 +540,7 @@ vector.add(2);
vector.add(4); vector.add(4);
vector.add(5); vector.add(5);
vector.add(4); vector.add(4);
vector.trimToCurrentLength(2); vector.trimToCurrentLength();
``` ```
### toString ### toString
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册