Skip to content

Commit

Permalink
doc/tutorial: fix errant use of list operators
Browse files Browse the repository at this point in the history
List operators were removed in 172f006; in 867f71f we introduced
builtins to replace those operators. The tutorial and other guides
should those builtins to demonstrate best practice.

Signed-off-by: Paul Jolly <[email protected]>
Change-Id: Ie595a28ad39e0b13a29355fbbe1ba5a615d18293
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/520994
Unity-Result: CUEcueckoo <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
  • Loading branch information
myitcv committed Jul 20, 2021
1 parent a4a38ed commit 38c8f7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/tutorial/basics/2_types/80_lists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ The output contains a valid private IP address (`myIP`)
and an invalid one (`yourIP`).

-- lists.cue --
IP: 4 * [ uint8 ]
import "list"

IP: list.Repeat([ uint8 ], 4)

PrivateIP: IP
PrivateIP: [10, ...uint8] |
Expand Down

0 comments on commit 38c8f7d

Please sign in to comment.