From cd0d97b4813258627b561d551359e89eda571582 Mon Sep 17 00:00:00 2001 From: wangyong1995626wywz Date: Wed, 23 Mar 2022 12:11:54 +0800 Subject: [PATCH] Correct incorrect display format Description "< T >" needs to be changed to "lt;Tgt;" to display #I4Z634:Correct incorrect display format Signed-off-by: wangyong1995626wywz --- zh-cn/application-dev/reference/apis/js-apis-hashmap.md | 6 +++--- zh-cn/application-dev/reference/apis/js-apis-list.md | 2 +- .../application-dev/reference/apis/js-apis-plainarray.md | 6 +++--- zh-cn/application-dev/reference/apis/js-apis-treemap.md | 8 ++++---- zh-cn/application-dev/reference/apis/js-apis-treeset.md | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-hashmap.md b/zh-cn/application-dev/reference/apis/js-apis-hashmap.md index cffd137ac8..ed609c72be 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hashmap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hashmap.md @@ -351,7 +351,7 @@ hashMap.forEach((value, key) => { ### entries -entries(): IterableIterator<[K, V]> +entries(): IterableIterator<[K, V]> 返回包含此映射中包含的键值对的新迭代器对象。 @@ -359,7 +359,7 @@ entries(): IterableIterator<[K, V]> | 类型 | 说明 | | -------- | -------- | -| IterableIterator<[K, V]> | 返回一个迭代器。 | +| IterableIterator<[K, V]> | 返回一个迭代器。 | **示例:** @@ -387,7 +387,7 @@ while(temp != undefined) { | 类型 | 说明 | | -------- | -------- | -| IterableIterator<[K, V]> | 返回一个迭代器。 | +| IterableIterator<[K, V]> | 返回一个迭代器。 | **示例:** ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-list.md b/zh-cn/application-dev/reference/apis/js-apis-list.md index 4caf882c01..4a986350a3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-list.md +++ b/zh-cn/application-dev/reference/apis/js-apis-list.md @@ -578,7 +578,7 @@ getLast(): T **示例:** ``` -let list = new Vector(); +let list = new List(); list.add(2); list.add(4); list.add(5); 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 be8fbccd27..498e53cbf5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-plainarray.md +++ b/zh-cn/application-dev/reference/apis/js-apis-plainarray.md @@ -416,7 +416,7 @@ plainArray.clear(); ### forEach -forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray) => void, thisArg?: Object): void +forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray<T>) => void, thisArg?: Object): void 通过回调函数来遍历实例对象上的元素以及元素对应的下标。 @@ -432,7 +432,7 @@ callbackfn的参数说明: | -------- | -------- | -------- | -------- | | value | T | 是 | 当前遍历到的元素键值对的值。 | | index | number | 否 | 当前遍历到的元素键值对的键。 | -| plainArray | PlainArray | 否 | 当前调用forEach方法的实例对象。 | +| PlainArray | PlainArray<T>| 否 | 当前调用forEach方法的实例对象。 | **示例:** @@ -456,7 +456,7 @@ plainArray.forEach((value, key) => { | 类型 | 说明 | | -------- | -------- | -| IterableIterator<[number, T]> | 返回一个迭代器。 | +| IterableIterator<[number, T]> | 返回一个迭代器。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-treemap.md b/zh-cn/application-dev/reference/apis/js-apis-treemap.md index d49b3e210e..2af66500fe 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treemap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treemap.md @@ -195,7 +195,7 @@ let result = treeMap.getLastKey(); setAll(map: TreeMap): void -将一个treemap中的所有元素组添加到另一个treeMap中。 +将一个TreeMap中的所有元素组添加到另一个TreeMap中。 **参数:** @@ -218,7 +218,7 @@ treeMap.setAll(map); set(key: K, value: V): Object -向treemap中添加一组数据。 +向容器中添加一组数据。 **参数:** @@ -330,7 +330,7 @@ let result = treeMap.getHigherKey("sdfs"); replace(key: K, newValue: V): boolean -对TreeMap中一组数据进行更新(替换)。 +对容器中一组数据进行更新(替换)。 **参数:** @@ -358,7 +358,7 @@ let result = treeMap.replace("sdfs", 357); clear(): void -清除TreeMap中的所有元素,并把length置为0。 +清除容器中的所有元素,并把length置为0。 **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-treeset.md b/zh-cn/application-dev/reference/apis/js-apis-treeset.md index 473db461ba..b55013bd1d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treeset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treeset.md @@ -139,7 +139,7 @@ let result = treeSet.getLastValue(); add(value: T): boolean -向TreeSet中添加一组数据。 +向容器中添加一组数据。 **参数:** -- GitLab