refactor: rename func Length -> Size

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

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
}