From 38c8f7d79a63c2c40e71eca244da1e09c0159f28 Mon Sep 17 00:00:00 2001 From: Paul Jolly Date: Tue, 20 Jul 2021 12:17:10 +0100 Subject: [PATCH] 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 Change-Id: Ie595a28ad39e0b13a29355fbbe1ba5a615d18293 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/520994 Unity-Result: CUEcueckoo TryBot-Result: CUEcueckoo --- doc/tutorial/basics/2_types/80_lists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/tutorial/basics/2_types/80_lists.txt b/doc/tutorial/basics/2_types/80_lists.txt index 6f0e137a2fa..0595c9e13df 100644 --- a/doc/tutorial/basics/2_types/80_lists.txt +++ b/doc/tutorial/basics/2_types/80_lists.txt @@ -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] |