edit some function annotations

This commit is contained in:
jroam
2021-08-04 23:35:29 +08:00
parent 248e6ff134
commit 537cbf983e
3 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ func New(safe ...bool) *Array {
return NewArraySize(0, 0, safe...)
}
// NewArray See New.
// NewArray is alias of New, please see New.
func NewArray(safe ...bool) *Array {
return NewArraySize(0, 0, safe...)
}
@ -422,7 +422,7 @@ func (a *Array) SubSlice(offset int, length ...int) []interface{} {
}
}
// Append See PushRight.
// Append is alias of PushRight, please See PushRight.
func (a *Array) Append(value ...interface{}) *Array {
a.PushRight(value...)
return a

View File

@ -424,7 +424,7 @@ func (a *IntArray) SubSlice(offset int, length ...int) []int {
}
}
// Append See PushRight.
// Append is alias of PushRight,please See PushRight.
func (a *IntArray) Append(value ...int) *IntArray {
a.mu.Lock()
a.array = append(a.array, value...)

View File

@ -411,7 +411,7 @@ func (a *StrArray) SubSlice(offset int, length ...int) []string {
}
}
// Append See PushRight.
// Append is alias of PushRight,please See PushRight.
func (a *StrArray) Append(value ...string) *StrArray {
a.mu.Lock()
a.array = append(a.array, value...)