提交 6e78271c 编写于 作者: W wangyong1995626wywz

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: Nwangyong1995626wywz <wangyong237@huawei.com>
上级 33fe719a
......@@ -537,7 +537,7 @@ arrayList.add(2);
arrayList.add(4);
arrayList.add(5);
arrayList.add(4);
arrayList.trimToCurrentLength(2);
arrayList.trimToCurrentLength();
```
### [Symbol.iterator]
......
......@@ -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);
```
......
......@@ -117,7 +117,7 @@ let result = plainArray.get(1);
getIndexOfKey(key: number): number;
查找指定元素第一次出现的下标值,如果没有找到该元素返回-1。
查找指定key第一次出现的下标值,如果没有找到该元素返回-1。
**参数:**
......
......@@ -540,7 +540,7 @@ vector.add(2);
vector.add(4);
vector.add(5);
vector.add(4);
vector.trimToCurrentLength(2);
vector.trimToCurrentLength();
```
### toString
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册