Skip to content

Commit b5cedb7

Browse files
committed
tidy clean and small text fix
1 parent 086627e commit b5cedb7

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Diff for: src/libcore/intrinsics.rs

+18-18
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,18 @@ extern "rust-intrinsic" {
155155
/// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
156156
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html)
157157
/// as both the `success` and `failure` parameters. For example,
158-
/// [`AtomicBool::compare_exchange`][compare_exchange_weak].
158+
/// [`AtomicBool::compare_exchange_weak`][cew].
159159
///
160-
/// [compare_exchange_weak]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
160+
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
161161
pub fn atomic_cxchgweak<T>(dst: *mut T, old: T, src: T) -> (T, bool);
162162
/// Stores a value if the current value is the same as the `old` value.
163163
/// The stabilized version of this intrinsic is available on the
164164
/// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
165165
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
166166
/// as both the `success` and `failure` parameters. For example,
167-
/// [`AtomicBool::compare_exchange`][compare_exchange_weak].
167+
/// [`AtomicBool::compare_exchange_weak`][cew].
168168
///
169-
/// [compare_exchange_weak]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
169+
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
170170
pub fn atomic_cxchgweak_acq<T>(dst: *mut T, old: T, src: T) -> (T, bool);
171171
/// Stores a value if the current value is the same as the `old` value.
172172
/// The stabilized version of this intrinsic is available on the
@@ -175,9 +175,9 @@ extern "rust-intrinsic" {
175175
/// as the `success` and
176176
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
177177
/// as the `failure` parameters. For example,
178-
/// [`AtomicBool::compare_exchange`][compare_exchange_weak].
178+
/// [`AtomicBool::compare_exchange_weak`][cew].
179179
///
180-
/// [compare_exchange_weak]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
180+
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
181181
pub fn atomic_cxchgweak_rel<T>(dst: *mut T, old: T, src: T) -> (T, bool);
182182
/// Stores a value if the current value is the same as the `old` value.
183183
/// The stabilized version of this intrinsic is available on the
@@ -186,18 +186,18 @@ extern "rust-intrinsic" {
186186
/// as the `success` and
187187
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
188188
/// as the `failure` parameters. For example,
189-
/// [`AtomicBool::compare_exchange`][compare_exchange_weak].
189+
/// [`AtomicBool::compare_exchange_weak`][cew].
190190
///
191-
/// [compare_exchange_weak]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
191+
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
192192
pub fn atomic_cxchgweak_acqrel<T>(dst: *mut T, old: T, src: T) -> (T, bool);
193193
/// Stores a value if the current value is the same as the `old` value.
194194
/// The stabilized version of this intrinsic is available on the
195195
/// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
196196
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
197197
/// as both the `success` and `failure` parameters. For example,
198-
/// [`AtomicBool::compare_exchange`][compare_exchange_weak].
198+
/// [`AtomicBool::compare_exchange_weak`][cew].
199199
///
200-
/// [compare_exchange_weak]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
200+
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
201201
pub fn atomic_cxchgweak_relaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
202202
/// Stores a value if the current value is the same as the `old` value.
203203
/// The stabilized version of this intrinsic is available on the
@@ -206,9 +206,9 @@ extern "rust-intrinsic" {
206206
/// as the `success` and
207207
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
208208
/// as the `failure` parameters. For example,
209-
/// [`AtomicBool::compare_exchange`][compare_exchange_weak].
209+
/// [`AtomicBool::compare_exchange_weak`][cew].
210210
///
211-
/// [compare_exchange_weak]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
211+
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
212212
pub fn atomic_cxchgweak_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
213213
/// Stores a value if the current value is the same as the `old` value.
214214
/// The stabilized version of this intrinsic is available on the
@@ -217,9 +217,9 @@ extern "rust-intrinsic" {
217217
/// as the `success` and
218218
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
219219
/// as the `failure` parameters. For example,
220-
/// [`AtomicBool::compare_exchange`][compare_exchange_weak].
220+
/// [`AtomicBool::compare_exchange_weak`][cew].
221221
///
222-
/// [compare_exchange_weak]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
222+
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
223223
pub fn atomic_cxchgweak_failacq<T>(dst: *mut T, old: T, src: T) -> (T, bool);
224224
/// Stores a value if the current value is the same as the `old` value.
225225
/// The stabilized version of this intrinsic is available on the
@@ -228,9 +228,9 @@ extern "rust-intrinsic" {
228228
/// as the `success` and
229229
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
230230
/// as the `failure` parameters. For example,
231-
/// [`AtomicBool::compare_exchange`][compare_exchange_weak].
231+
/// [`AtomicBool::compare_exchange_weak`][cew].
232232
///
233-
/// [compare_exchange_weak]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
233+
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
234234
pub fn atomic_cxchgweak_acq_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
235235
/// Stores a value if the current value is the same as the `old` value.
236236
/// The stabilized version of this intrinsic is available on the
@@ -239,9 +239,9 @@ extern "rust-intrinsic" {
239239
/// as the `success` and
240240
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
241241
/// as the `failure` parameters. For example,
242-
/// [`AtomicBool::compare_exchange`][compare_exchange_weak].
242+
/// [`AtomicBool::compare_exchange_weak`][cew].
243243
///
244-
/// [compare_exchange_weak]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
244+
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
245245
pub fn atomic_cxchgweak_acqrel_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
246246

247247
/// Loads the current value of the pointer.

0 commit comments

Comments
 (0)