Skip to content

Commit 38c8f7d

Browse files
committed
doc/tutorial: fix errant use of list operators
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]>
1 parent a4a38ed commit 38c8f7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/tutorial/basics/2_types/80_lists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ The output contains a valid private IP address (`myIP`)
2323
and an invalid one (`yourIP`).
2424

2525
-- lists.cue --
26-
IP: 4 * [ uint8 ]
26+
import "list"
27+
28+
IP: list.Repeat([ uint8 ], 4)
2729

2830
PrivateIP: IP
2931
PrivateIP: [10, ...uint8] |

0 commit comments

Comments
 (0)