Skip to content

Commit 8c53f3c

Browse files
Doc: Add an example of slicing with a negative index
1 parent 422af98 commit 8c53f3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/_stdlib_gen/stdlib-content.jsonnet

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,10 @@ local html = import 'html.libsonnet';
12401240
input: 'std.slice("jsonnet", 0, 4, 1)',
12411241
output: std.slice('jsonnet', 0, 4, 1),
12421242
},
1243+
{
1244+
input: 'std.slice("jsonnet", -3, null, null)',
1245+
output: std.slice('jsonnet', -3, null, null),
1246+
},
12431247
],
12441248
},
12451249
{

0 commit comments

Comments
 (0)