diff --git a/docs/api/packages/datastructure/hashmap.md b/docs/api/packages/datastructure/hashmap.md index 3304ba6..2768fcd 100644 --- a/docs/api/packages/datastructure/hashmap.md +++ b/docs/api/packages/datastructure/hashmap.md @@ -38,7 +38,7 @@ import ( ### NewHashMap -
新建默认容量(1 << 10)的HashMap指针实例
+新建默认容量(1 << 10)的HashMap指针实例
函数签名: diff --git a/docs/en/api/packages/datastructure/hashmap.md b/docs/en/api/packages/datastructure/hashmap.md index 8db7e85..de0fd3c 100644 --- a/docs/en/api/packages/datastructure/hashmap.md +++ b/docs/en/api/packages/datastructure/hashmap.md @@ -39,7 +39,7 @@ import ( ### NewHashMap -Make a HashMap instance with default capacity is 1 << 10.
+Make a HashMap instance with default capacity is 1 << 10.
Signature: diff --git a/docs/en/api/packages/slice.md b/docs/en/api/packages/slice.md index 750e994..23fd4b3 100644 --- a/docs/en/api/packages/slice.md +++ b/docs/en/api/packages/slice.md @@ -880,7 +880,7 @@ func main() { ### FindBy -Iterates over elements of slice, returning the first one that passes a truth test on predicate function.If return T is nil or zero value then no items matched the predicate func. In contrast to Find or FindLast, its return value no longer requires dereferencing
+Iterates over elements of slice, returning the first one that passes a truth test on predicate function.If return T is nil or zero value then no items matched the predicate func. In contrast to Find or FindLast, its return value no longer requires dereferencing.
Signature: @@ -952,7 +952,7 @@ func main() { ### FindLastBy -FindLastBy iterates over elements of slice, returning the last one that passes a truth test on predicate function. If return T is nil or zero value then no items matched the predicate func. In contrast to Find or FindLast, its return value no longer requires dereferencing
+FindLastBy iterates over elements of slice, returning the last one that passes a truth test on predicate function. If return T is nil or zero value then no items matched the predicate func. In contrast to Find or FindLast, its return value no longer requires dereferencing.
Signature: @@ -1920,8 +1920,7 @@ func main() { ### Sort -Sorts a slice of any ordered type(number or string), use quick sort algrithm. Default sort order is ascending (asc), if want descending order, set param `sortOrder` to `desc`. Ordered type: number(all ints uints floats) or string. -
+Sorts a slice of any ordered type(number or string), use quick sort algrithm. Default sort order is ascending (asc), if want descending order, set param `sortOrder` to `desc`. Ordered type: number(all ints uints floats) or string.
Signature: @@ -1958,7 +1957,7 @@ func main() { ### SortBy -Sorts the slice in ascending order as determined by the less function. This sort is not guaranteed to be stable.
+
Sorts the slice in ascending order as determined by the less function. This sort is not guaranteed to be stable.
Signature: @@ -2005,7 +2004,7 @@ func main() { ### SortByField (Deprecated: use Sort and SortBy for replacement) -Sort struct slice by field. Slice element should be struct, field type should be int, uint, string, or bool. Default sort type is ascending (asc), if descending order, set sortType to desc
+Sort struct slice by field. Slice element should be struct, field type should be int, uint, string, or bool. Default sort type is ascending (asc), if descending order, set sortType to desc.
Signature: @@ -2365,7 +2364,7 @@ func main() { ### Without -Creates a slice excluding all given items.
+Creates a slice excluding all given items.
Signature: