We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa8cc6d commit 1406e03Copy full SHA for 1406e03
1 file changed
pkg/common/stack/stack.go
@@ -38,9 +38,9 @@ func (s *Stack[T]) Top() T {
38
return s.stack[len(s.stack)-1]
39
}
40
41
-// PopFront pops the bottom level on the stack.
42
-// This method is useful to do Breath-First-Traversal.
43
-// instead of Depth-First-Traversal when using `Pop`.
+// PopBottom pops the bottom level on the stack.
+// This method is useful to do Breadth-First Traversal
+// instead of Depth-First Traversal when using `Pop`.
44
func (s *Stack[T]) PopBottom() T {
45
res := s.Bottom()
46
s.stack = s.stack[1:]
0 commit comments