summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst-library/src/foundations/str.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/typst-library/src/foundations/str.rs b/crates/typst-library/src/foundations/str.rs
index fc221c49..1431e9f9 100644
--- a/crates/typst-library/src/foundations/str.rs
+++ b/crates/typst-library/src/foundations/str.rs
@@ -131,6 +131,8 @@ impl Str {
/// - Integers are formatted in base 10. This can be overridden with the
/// optional `base` parameter.
/// - Floats are formatted in base 10 and never in exponential notation.
+ /// - Negative integers and floats are formatted with the Unicode minus sign
+ /// ("−" U+2212) instead of the ASCII minus sign ("-" U+002D).
/// - From labels the name is extracted.
/// - Bytes are decoded as UTF-8.
///