mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Change type repr to short name (#5788)
This commit is contained in:
parent
3eb6e87af1
commit
a1f263862c
@ -136,7 +136,7 @@ impl Repr for Type {
|
|||||||
} else if *self == Type::of::<NoneValue>() {
|
} else if *self == Type::of::<NoneValue>() {
|
||||||
"type(none)"
|
"type(none)"
|
||||||
} else {
|
} else {
|
||||||
self.long_name()
|
self.short_name()
|
||||||
}
|
}
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
@ -37,8 +37,8 @@
|
|||||||
#t(() => none, `(..) => ..`)
|
#t(() => none, `(..) => ..`)
|
||||||
|
|
||||||
// Types.
|
// Types.
|
||||||
#t(int, `integer`)
|
#t(int, `int`)
|
||||||
#t(type("hi"), `string`)
|
#t(type("hi"), `str`)
|
||||||
#t(type((a: 1)), `dictionary`)
|
#t(type((a: 1)), `dictionary`)
|
||||||
|
|
||||||
// Constants.
|
// Constants.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user