refactor: rename func Length -> Size

This commit is contained in:
dudaodong committed 2022-02-11 10:48:38 +08:00
1 parent 43fb907a81
commit 92e1321d43
2 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -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
}