Skip to content

Commit b8a8bce

Browse files
Rollup merge of rust-lang#158475 - m-ou-se:fix-doc-comment, r=JonathanBrouwer
Fix doc comment on get_debug_as_hex.
2 parents 160968e + 1af87c1 commit b8a8bce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/core/src/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ impl FormattingOptions {
518518
pub const fn get_precision(&self) -> Option<u16> {
519519
if self.flags & flags::PRECISION_FLAG != 0 { Some(self.precision) } else { None }
520520
}
521-
/// Returns the current precision.
521+
/// Returns the current `x?` or `X?` flag.
522522
#[unstable(feature = "formatting_options", issue = "118117")]
523523
pub const fn get_debug_as_hex(&self) -> Option<DebugAsHex> {
524524
if self.flags & flags::DEBUG_LOWER_HEX_FLAG != 0 {

0 commit comments

Comments
 (0)