Skip to content

Commit ac7e992

Browse files
committed
cue: undeprecate Iterator.Label
The necessary functionality for Selector isn't fully there yet. Keep it hidden, though. Change-Id: I7d3f65cba99c489f350978153a4bc0bb8d43d327 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9542 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
1 parent b449c0f commit ac7e992

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cue/types.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,12 @@ func (i *Iterator) Selector() Selector {
258258
return featureToSel(i.f, i.idx)
259259
}
260260

261-
// Label reports the label of the value if i iterates over struct fields and
262-
// "" otherwise.
261+
// Label reports the label of the value if i iterates over struct fields and ""
262+
// otherwise.
263+
//
263264
//
264-
// Deprecated: use i.Selector().String(). Note that this will give more accurate
265-
// string representations.
265+
// Slated to be deprecated: use i.Selector().String(). Note that this will give
266+
// more accurate string representations.
266267
func (i *hiddenIterator) Label() string {
267268
if i.f == 0 {
268269
return ""

0 commit comments

Comments
 (0)