diff options
| author | Ralf Jung <post@ralfj.de> | 2019-10-12 15:35:15 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-10-12 15:35:15 +0200 |
| commit | 504cc208448e5dd60186c6ff48d1f82438bc1e59 (patch) | |
| tree | c1ce2945b6bb1d3532395461e085e7145fecc01f /src/liballoc | |
| parent | f727f8ae5e1663557904c23438ea9525d50e9abc (diff) | |
| download | rust-504cc208448e5dd60186c6ff48d1f82438bc1e59.tar.gz rust-504cc208448e5dd60186c6ff48d1f82438bc1e59.zip | |
remove confusing and redundant subsection
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/fmt.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/liballoc/fmt.rs b/src/liballoc/fmt.rs index bdd1583080b..1e39b7f822e 100644 --- a/src/liballoc/fmt.rs +++ b/src/liballoc/fmt.rs @@ -80,23 +80,6 @@ //! arguments which have names. Like with positional parameters, it is not //! valid to provide named parameters that are unused by the format string. //! -//! ## Argument types -//! -//! Each argument's type is dictated by the format string. -//! There are various parameters which require a particular type, however. -//! An example is the `{:.*}` syntax, which sets the number of decimal places -//! in floating-point types: -//! -//! ``` -//! let formatted_number = format!("{:.*}", 2, 1.234567); -//! -//! assert_eq!("1.23", formatted_number) -//! ``` -//! -//! If this syntax is used, then the number of characters to print precedes the -//! actual object being formatted, and the number of characters must have the -//! type [`usize`]. -//! //! # Formatting Parameters //! //! Each argument being formatted can be transformed by a number of formatting |
