Add explicit notice about unicode minus sign in the str function (#5301)

Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
lucaslugao 2024-10-28 14:26:32 +00:00 committed by GitHub
parent 83927686d9
commit 6dd05cc17a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
///