summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst-library/src/foundations/ty.rs2
-rw-r--r--tests/suite/foundations/repr.typ4
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-library/src/foundations/ty.rs b/crates/typst-library/src/foundations/ty.rs
index a2395f2a..973c1cb6 100644
--- a/crates/typst-library/src/foundations/ty.rs
+++ b/crates/typst-library/src/foundations/ty.rs
@@ -136,7 +136,7 @@ impl Repr for Type {
} else if *self == Type::of::<NoneValue>() {
"type(none)"
} else {
- self.long_name()
+ self.short_name()
}
.into()
}
diff --git a/tests/suite/foundations/repr.typ b/tests/suite/foundations/repr.typ
index 36823e98..2f2c055a 100644
--- a/tests/suite/foundations/repr.typ
+++ b/tests/suite/foundations/repr.typ
@@ -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.