mirror of
https://github.com/duke-git/lancet.git
synced 2026-03-01 00:35:28 +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