From d0fc0956e5f28fbc5beb21185f9e07213ea3a790 Mon Sep 17 00:00:00 2001 From: Nano Miratus Date: Mon, 2 Oct 2017 05:52:08 +0200 Subject: [PATCH] removed unexpected token ":" fixing this issue: https://github.com/google/jsonnet/issues/380 --- stdlib/std.jsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/std.jsonnet b/stdlib/std.jsonnet index 8910c4768..1018b281a 100644 --- a/stdlib/std.jsonnet +++ b/stdlib/std.jsonnet @@ -63,7 +63,7 @@ limitations under the License. local toDigits(str) = [std.codepoint(char) - std.codepoint("0") for char in std.stringChars(str)]; if str[0] == "-" then - -std.foldl(addDigit, toDigits(str[1:]), 0) + -std.foldl(addDigit, toDigits(str[1]), 0) else std.foldl(addDigit, toDigits(str), 0),