Skip to content

Commit

Permalink
Fix typo in BFSWithDepth GoDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikbraun committed May 18, 2023
1 parent 4cbb2a1 commit e671221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traversal.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func BFS[K comparable, T any](g Graph[K, T], start K, visit func(K) bool) error

// BFSWithDepth works just as BFS and performs a breadth-first search on the graph, but its
// visit function is passed the current depth level as a second argument. Consequently, the
// current depth and be used for deciding whether or not to proceed past a certain depth.
// current depth can be used for deciding whether or not to proceed past a certain depth.
//
// _ = graph.BFSWithDepth(g, 1, func(value int, depth int) bool {
// fmt.Println(value)
Expand Down

0 comments on commit e671221

Please sign in to comment.