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>() {
|
||||
"type(none)"
|
||||
} else {
|
||||
self.long_name()
|
||||
self.short_name()
|
||||
}
|
||||
.into()
|
||||
}
|
||||
|
@ -37,8 +37,8 @@
|
||||
#t(() => none, `(..) => ..`)
|
||||
|
||||
// Types.
|
||||
#t(int, `integer`)
|
||||
#t(type("hi"), `string`)
|
||||
#t(int, `int`)
|
||||
#t(type("hi"), `str`)
|
||||
#t(type((a: 1)), `dictionary`)
|
||||
|
||||
// Constants.
|
||||
|
Loading…
x
Reference in New Issue
Block a user