about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-09-28 09:15:27 +0200
committerGitHub <noreply@github.com>2025-09-28 09:15:27 +0200
commitad864de2c3eb455c39419516bae13af07fc6b61f (patch)
treeb65f9179099f6dbe19d7b0b5333cedfb266e6231 /library
parent93fff3db2a24f807ca668c2e16e0efac139749a4 (diff)
parent97f64374a9f34012c8884dbd629a896ec6ed8475 (diff)
downloadrust-ad864de2c3eb455c39419516bae13af07fc6b61f.tar.gz
rust-ad864de2c3eb455c39419516bae13af07fc6b61f.zip
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().
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 {