diff options
| author | lucaslugao <lucaslugaoguimaraes@gmail.com> | 2024-10-28 14:26:32 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-28 14:26:32 +0000 |
| commit | 6dd05cc17ab0a1d6ddbc11854d1a662d91da142f (patch) | |
| tree | 796a49f7a939b5b206c3f21cd5e87b2e18c0f4b2 | |
| parent | 83927686d9eafc772c68e24c078a873a2a5ca969 (diff) | |
Add explicit notice about unicode minus sign in the str function (#5301)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
| -rw-r--r-- | crates/typst-library/src/foundations/str.rs | 2 |
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. /// |
