mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
refactor: rename func Length -> Size
This commit is contained in:
1 parent
43fb907a81
commit
92e1321d43
2 files changed
+7
-7
No files matched your search
@@ -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