109109//! parameters (corresponding to `format_spec` in [the syntax](#syntax)). These
110110//! parameters affect the string representation of what's being formatted.
111111//!
112- //! The colon `:` in format syntax divides indentifier of the input data
113- //! and the formatting options, the colon itself does not change anything, only introduces
114- //! the options.
112+ //! The colon `:` in format syntax divides indentifier of the input data and
113+ //! the formatting options, the colon itself does not change anything, only
114+ //! introduces the options.
115115//!
116116//! ```
117117//! let a = 5;
118118//! let b = &a;
119- //! println!("{a:e}{b:p}");
119+ //! println!("{a:e} {b:p}"); // => 5e0 0x7ffe37b7273c
120120//! ```
121121//!
122122//! ## Width
590590pub use core:: fmt:: Alignment ;
591591#[ stable( feature = "rust1" , since = "1.0.0" ) ]
592592pub use core:: fmt:: Error ;
593+ #[ unstable( feature = "debug_closure_helpers" , issue = "117729" ) ]
594+ pub use core:: fmt:: { from_fn, FromFn } ;
593595#[ stable( feature = "rust1" , since = "1.0.0" ) ]
594- pub use core:: fmt:: { Arguments , write } ;
596+ pub use core:: fmt:: { write , Arguments } ;
595597#[ stable( feature = "rust1" , since = "1.0.0" ) ]
596598pub use core:: fmt:: { Binary , Octal } ;
597599#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -600,8 +602,6 @@ pub use core::fmt::{Debug, Display};
600602pub use core:: fmt:: { DebugList , DebugMap , DebugSet , DebugStruct , DebugTuple } ;
601603#[ stable( feature = "rust1" , since = "1.0.0" ) ]
602604pub use core:: fmt:: { Formatter , Result , Write } ;
603- #[ unstable( feature = "debug_closure_helpers" , issue = "117729" ) ]
604- pub use core:: fmt:: { FromFn , from_fn} ;
605605#[ stable( feature = "rust1" , since = "1.0.0" ) ]
606606pub use core:: fmt:: { LowerExp , UpperExp } ;
607607#[ stable( feature = "rust1" , since = "1.0.0" ) ]
0 commit comments