git.delta.rocks / jrsonnet / refs/commits / ed5873f1697a

difftreelog

fix use correct vanilla type names

Yaroslav Bolyukin2021-01-06parent: #dad8ebd.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-types/src/lib.rsdiffbeforeafterboth
88 pub const fn name(&self) -> &'static str {88 pub const fn name(&self) -> &'static str {
89 use ValType::*;89 use ValType::*;
90 match self {90 match self {
91 Bool => "bool",91 Bool => "boolean",
92 Null => "null",92 Null => "null",
93 Str => "str",93 Str => "string",
94 Num => "num",94 Num => "number",
95 Arr => "[any]",95 Arr => "array",
96 Obj => "obj",96 Obj => "object",
97 Func => "fn.any",97 Func => "function",
98 }98 }
99 }99 }
100}100}