Commit 74915efd authored by Jeromy's avatar Jeromy

fix FindLinks comment

parent 0b6524cf
...@@ -290,8 +290,8 @@ func FetchGraph(ctx context.Context, root *Node, serv DAGService) chan struct{} ...@@ -290,8 +290,8 @@ func FetchGraph(ctx context.Context, root *Node, serv DAGService) chan struct{}
return done return done
} }
// Searches this nodes links for one to the given key, // FindLinks searches this nodes links for the given key,
// returns the index of said link // returns the indexes of any links pointing to it
func FindLinks(n *Node, k u.Key) []int { func FindLinks(n *Node, k u.Key) []int {
var out []int var out []int
for i, lnk := range n.Links { for i, lnk := range n.Links {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment