Skip to content

Commit 97f6437

Browse files
committed
formatting_options: fix alternate docs 0b/0o mixup
The descriptions of the alternate forms of Octal and Binary were swapped in the doc comment for FormattingOptions::alternate().
1 parent 54a8a1d commit 97f6437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/fmt/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ impl FormattingOptions {
386386
/// used. The alternate forms are:
387387
/// - [`Debug`] : pretty-print the [`Debug`] formatting (adds linebreaks and indentation)
388388
/// - [`LowerHex`] as well as [`UpperHex`] - precedes the argument with a `0x`
389-
/// - [`Octal`] - precedes the argument with a `0b`
390-
/// - [`Binary`] - precedes the argument with a `0o`
389+
/// - [`Octal`] - precedes the argument with a `0o`
390+
/// - [`Binary`] - precedes the argument with a `0b`
391391
#[unstable(feature = "formatting_options", issue = "118117")]
392392
pub const fn alternate(&mut self, alternate: bool) -> &mut Self {
393393
if alternate {

0 commit comments

Comments
 (0)