Skip to content

Commit

Permalink
removed unexpected token ":"
Browse files Browse the repository at this point in the history
fixing this issue: google#380
  • Loading branch information
nnmrts authored Oct 2, 2017
1 parent 6b7f64c commit d0fc095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/std.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Expand Down

0 comments on commit d0fc095

Please sign in to comment.