File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 247247//! Hello, ` 123` has 3 right-aligned characters
248248//! ```
249249//!
250+ //! ## Localization
251+ //!
252+ //! In some programming languages, the behavior of string formatting functions
253+ //! depends on the operating system's locale setting. The format functions
254+ //! provided by Rust's standard library do not have any concept of locale, and
255+ //! will produce the same results on all systems regardless of user
256+ //! configuration.
257+ //!
258+ //! For example, the following code will always print `1.5` even if the system
259+ //! locale uses a decimal separator other than a dot.
260+ //!
261+ //! ```
262+ //! println!("The value is {}", 1.5);
263+ //! ```
264+ //!
250265//! # Escaping
251266//!
252267//! The literal characters `{` and `}` may be included in a string by preceding
You can’t perform that action at this time.
0 commit comments