Skip to content

Commit 1406e03

Browse files
gabyxCopilot
andauthored
Update pkg/common/stack/stack.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent aa8cc6d commit 1406e03

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/common/stack/stack.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ func (s *Stack[T]) Top() T {
3838
return s.stack[len(s.stack)-1]
3939
}
4040

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`.
41+
// PopBottom pops the bottom level on the stack.
42+
// This method is useful to do Breadth-First Traversal
43+
// instead of Depth-First Traversal when using `Pop`.
4444
func (s *Stack[T]) PopBottom() T {
4545
res := s.Bottom()
4646
s.stack = s.stack[1:]

0 commit comments

Comments
 (0)