Skip to content

Commit aa8e810

Browse files
committed
internal/core/walk: Clarify Visitor.Before documentation
Signed-off-by: Matthew Sackman <[email protected]> Change-Id: I8ee9f023e391308506500ce6d556c07942a58d02 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1198552 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
1 parent 3f84ba6 commit aa8e810

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/core/walk/walk.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ type Visitor struct {
3535
// Feature is invoked for all field names.
3636
Feature func(f adt.Feature, src adt.Node)
3737

38-
// Before is invoked for all invoked for all nodes in pre-order traversal.
39-
// Return false prevents the visitor from visiting the nodes descendant
40-
// elements.
38+
// Before is invoked for all nodes in pre-order traversal.
39+
// Returning false prevents the visitor from visiting the node's
40+
// children.
4141
Before func(adt.Node) bool
4242
}
4343

0 commit comments

Comments
 (0)