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

!1952 Modify the same problem as the return value variable

Merge pull request !1952 from wangyong/sixDocs
......@@ -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"};
......
......@@ -114,7 +114,7 @@ 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册