Skip to content

Commit 276bebe

Browse files
committed
Update trait summaries for std::fmt
This patch is part of #29355.
1 parent d7e73e4 commit 276bebe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/libcore/fmt/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ impl<'a> Display for Arguments<'a> {
427427
}
428428
}
429429

430-
/// Format trait for the `?` character.
430+
/// `?` formatting.
431431
///
432432
/// `Debug` should format the output in a programmer-facing, debugging context.
433433
///
@@ -593,7 +593,7 @@ pub trait Display {
593593
fn fmt(&self, f: &mut Formatter) -> Result;
594594
}
595595

596-
/// Format trait for the `o` character.
596+
/// `o` formatting.
597597
///
598598
/// The `Octal` trait should format its output as a number in base-8.
599599
///
@@ -640,7 +640,7 @@ pub trait Octal {
640640
fn fmt(&self, f: &mut Formatter) -> Result;
641641
}
642642

643-
/// Format trait for the `b` character.
643+
/// `b` formatting.
644644
///
645645
/// The `Binary` trait should format its output as a number in binary.
646646
///
@@ -687,7 +687,7 @@ pub trait Binary {
687687
fn fmt(&self, f: &mut Formatter) -> Result;
688688
}
689689

690-
/// Format trait for the `x` character.
690+
/// `x` formatting.
691691
///
692692
/// The `LowerHex` trait should format its output as a number in hexadecimal, with `a` through `f`
693693
/// in lower case.
@@ -735,7 +735,7 @@ pub trait LowerHex {
735735
fn fmt(&self, f: &mut Formatter) -> Result;
736736
}
737737

738-
/// Format trait for the `X` character.
738+
/// `X` formatting.
739739
///
740740
/// The `UpperHex` trait should format its output as a number in hexadecimal, with `A` through `F`
741741
/// in upper case.
@@ -783,7 +783,7 @@ pub trait UpperHex {
783783
fn fmt(&self, f: &mut Formatter) -> Result;
784784
}
785785

786-
/// Format trait for the `p` character.
786+
/// `p` formatting.
787787
///
788788
/// The `Pointer` trait should format its output as a memory location. This is commonly presented
789789
/// as hexadecimal.
@@ -828,7 +828,7 @@ pub trait Pointer {
828828
fn fmt(&self, f: &mut Formatter) -> Result;
829829
}
830830

831-
/// Format trait for the `e` character.
831+
/// `e` formatting.
832832
///
833833
/// The `LowerExp` trait should format its output in scientific notation with a lower-case `e`.
834834
///
@@ -871,7 +871,7 @@ pub trait LowerExp {
871871
fn fmt(&self, f: &mut Formatter) -> Result;
872872
}
873873

874-
/// Format trait for the `E` character.
874+
/// `E` formatting.
875875
///
876876
/// The `UpperExp` trait should format its output in scientific notation with an upper-case `E`.
877877
///

0 commit comments

Comments
 (0)