From 52e477f947434989e93d0a9c22a7389d08b9b056 Mon Sep 17 00:00:00 2001 From: Hu Shuai Date: Tue, 7 Jan 2020 16:30:44 +0800 Subject: [PATCH] Fix outdated comments Signed-off-by: Hu Shuai --- gc/gc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc/gc.go b/gc/gc.go index c6fcf7910..4f71cb305 100644 --- a/gc/gc.go +++ b/gc/gc.go @@ -172,7 +172,7 @@ func ConcurrentMark(ctx context.Context, root <-chan Node, refs func(context.Con return seen, nil } -// Sweep removes all nodes returned through the channel which are not in +// Sweep removes all nodes returned through the slice which are not in // the reachable set by calling the provided remove function. func Sweep(reachable map[Node]struct{}, all []Node, remove func(Node) error) error { // All black objects are now reachable, and all white objects are