Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions library/alloc/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,19 @@
//! Hello, ` 123` has 3 right-aligned characters
//! ```
//!
//! When truncuating these values, Rust uses round-to-even, which may
//! cause concern when formatting for scientific notation. For example,
//!
//! ```
//! print!("{0:.1$e}", 12345, 3);
//! ```
//!
//! Would return:
//!
//! ```text
//! 1.234e4
//! ```
//!
//! ## Localization
//!
//! In some programming languages, the behavior of string formatting functions
Expand Down