1
0
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:
dudaodong
2022-02-11 10:48:38 +08:00
parent 43fb907a81
commit 92e1321d43
2 changed files with 7 additions and 7 deletions
+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
}