From e6712213ac3d552fdff8489fc6806c325fc8f501 Mon Sep 17 00:00:00 2001 From: Dominik Braun Date: Thu, 18 May 2023 21:31:13 +0200 Subject: [PATCH] Fix typo in BFSWithDepth GoDoc --- traversal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traversal.go b/traversal.go index 39a20b0e..73f704b7 100644 --- a/traversal.go +++ b/traversal.go @@ -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)