Skip to content

Commit 920b62d

Browse files
authored
Unrolled build for #147082
Rollup merge of #147082 - danielverkamp:fmt-alternate-octal-binary-mixup, r=Noratrieb 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().
2 parents 4ffeda1 + 97f6437 commit 920b62d

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)