Skip to content

Commit 32b169a

Browse files
committed
cue: clarify status of zero Path value
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]>
1 parent 5cc6175 commit 32b169a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cue/path.go

+1
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ type selector interface {
258258
}
259259

260260
// A Path is series of selectors to query a CUE value.
261+
// The zero value corresponds to an empty path.
261262
type Path struct {
262263
path []Selector
263264
}

0 commit comments

Comments
 (0)