fix: fixed Clear() array list method
This commit is contained in:
1 parent
4a3e5818a1
commit
0b2540924b
1 file changed
+1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user