about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarijn Schouten <hkBst@users.noreply.github.com>2025-01-22 09:30:28 +0100
committerMarijn Schouten <mhkbst@gmail.com>2025-01-28 14:12:55 +0100
commitaa1f941116e62aca07ea916bfef605b19793e058 (patch)
treeb8a00663aedfe55fa736a63e82da31e786c6bb4e
parentb2728d5426bab1d8c39709768c7e22b7f66dde5d (diff)
downloadrust-aa1f941116e62aca07ea916bfef605b19793e058.tar.gz
rust-aa1f941116e62aca07ea916bfef605b19793e058.zip
Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent
-rw-r--r--library/core/src/sync/atomic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs
index fda26a67299..f7aa8381855 100644
--- a/library/core/src/sync/atomic.rs
+++ b/library/core/src/sync/atomic.rs
@@ -2297,7 +2297,7 @@ macro_rules! atomic_int {
                 $int_type,
                 no = [
                     "**Note:** This function is only available on targets where `",
-                    stringify!($int_type), "` has an alignment of ", $align, " bytes."
+                    stringify!($atomic_type), "` has the same alignment as `", stringify!($int_type), "`."
                 ],
             }]
             ///