about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2020-10-31 17:21:23 -0700
committerJubilee Young <workingjubilee@gmail.com>2021-03-22 17:02:09 -0700
commit6fdb8d8b360b91a10045fe74467b98d218b7ffe9 (patch)
tree45126060ea5e671e3b79430313bf722e4686f975 /library/alloc
parent74db93ed2d0677bbca8ba85617f05eae745363d8 (diff)
downloadrust-6fdb8d8b360b91a10045fe74467b98d218b7ffe9.tar.gz
rust-6fdb8d8b360b91a10045fe74467b98d218b7ffe9.zip
Update signed fmt/-0f32 docs
"semantic equivalence" is too strong a phrasing here, which is why
actually explaining what kind of circumstances might produce a -0
was chosen instead.
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/fmt.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/alloc/src/fmt.rs b/library/alloc/src/fmt.rs
index f9424b1d747..439b0adde20 100644
--- a/library/alloc/src/fmt.rs
+++ b/library/alloc/src/fmt.rs
@@ -157,9 +157,8 @@
 //!
 //! * `+` - This is intended for numeric types and indicates that the sign
 //!         should always be printed. Positive signs are never printed by
-//!         default, and the negative sign is only printed by default for the
-//!         `Signed` trait. This flag indicates that the correct sign (`+` or `-`)
-//!         should always be printed.
+//!         default, and the negative sign is only printed by default for signed values.
+//!         This flag indicates that the correct sign (`+` or `-`) should always be printed.
 //! * `-` - Currently not used
 //! * `#` - This flag indicates that the "alternate" form of printing should
 //!         be used. The alternate forms are: