Merge pull request #3936 from hs0210/work

Fix outdated comments
This commit is contained in:
Michael Crosby 2020-01-07 11:45:56 -05:00 committed by GitHub
commit fda9cebc81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,7 @@ func ConcurrentMark(ctx context.Context, root <-chan Node, refs func(context.Con
return seen, nil 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. // the reachable set by calling the provided remove function.
func Sweep(reachable map[Node]struct{}, all []Node, remove func(Node) error) error { func Sweep(reachable map[Node]struct{}, all []Node, remove func(Node) error) error {
// All black objects are now reachable, and all white objects are // All black objects are now reachable, and all white objects are