about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2016-05-12 23:37:17 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2016-05-12 23:37:17 +0200
commit10c984a155eda8bada42f4b74528eb5c1a2bc826 (patch)
treeeaedad1c5b73a5ca84d7f8cd230959c1454a2432
parente88defe71806ad190588e168e513bc1098f7c9fb (diff)
downloadrust-10c984a155eda8bada42f4b74528eb5c1a2bc826.tar.gz
rust-10c984a155eda8bada42f4b74528eb5c1a2bc826.zip
doc: use less awkward and less confusing language
-rw-r--r--src/libcollections/fmt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/fmt.rs b/src/libcollections/fmt.rs
index ce1d6ec5a64..3f88183d27a 100644
--- a/src/libcollections/fmt.rs
+++ b/src/libcollections/fmt.rs
@@ -104,8 +104,8 @@
 //! octal.
 //!
 //! There are various parameters which do require a particular type, however.
-//! Namely, the `{:.*}` syntax, which sets the number of numbers after the
-//! decimal in floating-point types:
+//! An example is the `{:.*}` syntax, which sets the number of decimal places
+//! in floating-point types:
 //!
 //! ```
 //! let formatted_number = format!("{:.*}", 2, 1.234567);