Skip to content

Commit 504cc20

Browse files
committed
remove confusing and redundant subsection
1 parent f727f8a commit 504cc20

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/liballoc/fmt.rs

-17
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,6 @@
8080
//! arguments which have names. Like with positional parameters, it is not
8181
//! valid to provide named parameters that are unused by the format string.
8282
//!
83-
//! ## Argument types
84-
//!
85-
//! Each argument's type is dictated by the format string.
86-
//! There are various parameters which require a particular type, however.
87-
//! An example is the `{:.*}` syntax, which sets the number of decimal places
88-
//! in floating-point types:
89-
//!
90-
//! ```
91-
//! let formatted_number = format!("{:.*}", 2, 1.234567);
92-
//!
93-
//! assert_eq!("1.23", formatted_number)
94-
//! ```
95-
//!
96-
//! If this syntax is used, then the number of characters to print precedes the
97-
//! actual object being formatted, and the number of characters must have the
98-
//! type [`usize`].
99-
//!
10083
//! # Formatting Parameters
10184
//!
10285
//! Each argument being formatted can be transformed by a number of formatting

0 commit comments

Comments
 (0)