fix: fixed Clear() array list method
parent
4a3e5818a1
commit
0b2540924b
|
@ -170,6 +170,7 @@ func (self *ArrayList[T]) String() string {
|
|||
|
||||
func (self *ArrayList[T]) Clear() {
|
||||
self.content = self.content[:0]
|
||||
self.size = 0
|
||||
}
|
||||
|
||||
func (self *ArrayList[T]) GetLast() T {
|
||||
|
|
Loading…
Reference in New Issue