remove confusing and redundant subsection
This commit is contained in:
parent
f727f8ae5e
commit
504cc20844
1 changed files with 0 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue