1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-13 17:22:27 +08:00

fix: fix some spell mistake

This commit is contained in:
dudaodong
2022-02-13 19:00:44 +08:00
parent 8a4c8218d2
commit 48c1f8ffad
5 changed files with 18 additions and 18 deletions

View File

@@ -121,7 +121,7 @@ func (l *List[T]) DeleteAt(index int) {
l.data = data
}
// InsertAt insert value into list at index, index shoud between 0 and list size -1
// UpdateAt update value of list at index, index shoud between 0 and list size -1
func (l *List[T]) UpdateAt(index int, value T) {
data := l.data
size := len(data)
@@ -132,8 +132,8 @@ func (l *List[T]) UpdateAt(index int, value T) {
l.data = append(data[:index], append([]T{value}, data[index+1:]...)...)
}
// EqutalTo compare list to other list, use reflect.DeepEqual
func (l *List[T]) EqutalTo(other *List[T]) bool {
// Equtal compare list to other list, use reflect.DeepEqual
func (l *List[T]) Equtal(other *List[T]) bool {
if len(l.data) != len(other.data) {
return false
}