mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Add explicit notice about unicode minus sign in the str function (#5301)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
parent
83927686d9
commit
6dd05cc17a
@ -131,6 +131,8 @@ impl Str {
|
|||||||
/// - Integers are formatted in base 10. This can be overridden with the
|
/// - Integers are formatted in base 10. This can be overridden with the
|
||||||
/// optional `base` parameter.
|
/// optional `base` parameter.
|
||||||
/// - Floats are formatted in base 10 and never in exponential notation.
|
/// - 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.
|
/// - From labels the name is extracted.
|
||||||
/// - Bytes are decoded as UTF-8.
|
/// - Bytes are decoded as UTF-8.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user