fix: fix some spell mistake

This commit is contained in:
dudaodong committed 2022-02-13 19:00:44 +08:00
1 parent 8a4c8218d2
commit 48c1f8ffad
5 files changed
+18 -18

No files matched your search

+2 -2
View File
@@ -92,8 +92,8 @@ func (q *LinkedQueue[T]) Clear() {
}
// Print all nodes info of queue link
func (s *LinkedQueue[T]) Print() {
current := s.head
func (q *LinkedQueue[T]) Print() {
current := q.head
info := "[ "
for current != nil {
info += fmt.Sprintf("%+v, ", current)