Skip to content

Commit 5181035

Browse files
committed
Implement reviewer suggestions
1 parent 967fe56 commit 5181035

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

library/alloc/src/fmt.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@
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
@@ -590,8 +590,10 @@
590590
pub use core::fmt::Alignment;
591591
#[stable(feature = "rust1", since = "1.0.0")]
592592
pub 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")]
596598
pub use core::fmt::{Binary, Octal};
597599
#[stable(feature = "rust1", since = "1.0.0")]
@@ -600,8 +602,6 @@ pub use core::fmt::{Debug, Display};
600602
pub use core::fmt::{DebugList, DebugMap, DebugSet, DebugStruct, DebugTuple};
601603
#[stable(feature = "rust1", since = "1.0.0")]
602604
pub 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")]
606606
pub use core::fmt::{LowerExp, UpperExp};
607607
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)