about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorDaniel Verkamp <daniel@drv.nu>2025-09-26 16:30:08 -0700
committerDaniel Verkamp <daniel@drv.nu>2025-09-26 16:32:54 -0700
commit97f64374a9f34012c8884dbd629a896ec6ed8475 (patch)
treec2f75a146e0b8b35ac0f8278b4d3dc1c1db50ca2 /library
parent54a8a1db604e4caff93e26e167ad4a6fde9f0681 (diff)
downloadrust-97f64374a9f34012c8884dbd629a896ec6ed8475.tar.gz
rust-97f64374a9f34012c8884dbd629a896ec6ed8475.zip
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().
Diffstat (limited to 'library')
-rw-r--r--library/core/src/fmt/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs
index b6de8925308..fcd2e52101f 100644
--- a/library/core/src/fmt/mod.rs
+++ b/library/core/src/fmt/mod.rs
@@ -386,8 +386,8 @@ impl FormattingOptions {
     /// used. The alternate forms are:
     /// - [`Debug`] : pretty-print the [`Debug`] formatting (adds linebreaks and indentation)
     /// - [`LowerHex`] as well as [`UpperHex`] - precedes the argument with a `0x`
-    /// - [`Octal`] - precedes the argument with a `0b`
-    /// - [`Binary`] - precedes the argument with a `0o`
+    /// - [`Octal`] - precedes the argument with a `0o`
+    /// - [`Binary`] - precedes the argument with a `0b`
     #[unstable(feature = "formatting_options", issue = "118117")]
     pub const fn alternate(&mut self, alternate: bool) -> &mut Self {
         if alternate {