Skip to content

Commit

Permalink
cue: clarify status of zero Path value
Browse files Browse the repository at this point in the history
It's useful to know that a zero `cue.Path` value is usable,
so document that fact.

Signed-off-by: Roger Peppe <[email protected]>
Change-Id: I0d4bced16832cb5aaa32c4a5500928f36d69dfba
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201913
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
  • Loading branch information
rogpeppe committed Sep 30, 2024
1 parent 5cc6175 commit 32b169a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cue/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ type selector interface {
}

// A Path is series of selectors to query a CUE value.
// The zero value corresponds to an empty path.
type Path struct {
path []Selector
}
Expand Down

0 comments on commit 32b169a

Please sign in to comment.