109
109
//! parameters (corresponding to `format_spec` in [the syntax](#syntax)). These
110
110
//! parameters affect the string representation of what's being formatted.
111
111
//!
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.
115
115
//!
116
116
//! ```
117
117
//! let a = 5;
118
118
//! let b = &a;
119
- //! println!("{a:e}{b:p}");
119
+ //! println!("{a:e} {b:p}"); // => 5e0 0x7ffe37b7273c
120
120
//! ```
121
121
//!
122
122
//! ## Width
590
590
pub use core:: fmt:: Alignment ;
591
591
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
592
592
pub use core:: fmt:: Error ;
593
+ #[ unstable( feature = "debug_closure_helpers" , issue = "117729" ) ]
594
+ pub use core:: fmt:: { from_fn, FromFn } ;
593
595
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
594
- pub use core:: fmt:: { Arguments , write } ;
596
+ pub use core:: fmt:: { write , Arguments } ;
595
597
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
596
598
pub use core:: fmt:: { Binary , Octal } ;
597
599
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -600,8 +602,6 @@ pub use core::fmt::{Debug, Display};
600
602
pub use core:: fmt:: { DebugList , DebugMap , DebugSet , DebugStruct , DebugTuple } ;
601
603
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
602
604
pub use core:: fmt:: { Formatter , Result , Write } ;
603
- #[ unstable( feature = "debug_closure_helpers" , issue = "117729" ) ]
604
- pub use core:: fmt:: { FromFn , from_fn} ;
605
605
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
606
606
pub use core:: fmt:: { LowerExp , UpperExp } ;
607
607
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
0 commit comments