From 6dd05cc17ab0a1d6ddbc11854d1a662d91da142f Mon Sep 17 00:00:00 2001 From: lucaslugao Date: Mon, 28 Oct 2024 14:26:32 +0000 Subject: [PATCH] Add explicit notice about unicode minus sign in the str function (#5301) Co-authored-by: Laurenz --- crates/typst-library/src/foundations/str.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/typst-library/src/foundations/str.rs b/crates/typst-library/src/foundations/str.rs index fc221c49f..1431e9f98 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. ///