mirror of
https://github.com/duke-git/lancet.git
synced 2025-10-20 22:19:48 +08:00
refactor: rename func Length -> Size
This commit is contained in:
@@ -30,8 +30,8 @@ func (s *LinkedStack[T]) Data() []T {
|
||||
return res
|
||||
}
|
||||
|
||||
// Length return length of stack data
|
||||
func (s *LinkedStack[T]) Length() int {
|
||||
// Size return length of stack data
|
||||
func (s *LinkedStack[T]) Size() int {
|
||||
return s.length
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user