Skip to content

Commit

Permalink
Doc: Add an example of slicing with a negative index
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbartholomew committed Mar 2, 2024
1 parent 422af98 commit 8c53f3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/_stdlib_gen/stdlib-content.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,10 @@ local html = import 'html.libsonnet';
input: 'std.slice("jsonnet", 0, 4, 1)',
output: std.slice('jsonnet', 0, 4, 1),
},
{
input: 'std.slice("jsonnet", -3, null, null)',
output: std.slice('jsonnet', -3, null, null),
},
],
},
{
Expand Down

0 comments on commit 8c53f3c

Please sign in to comment.