From cd59582609f8d14c3a96404bd9e6b63eea1c005f Mon Sep 17 00:00:00 2001 From: Mike Robinson Date: Thu, 6 Nov 2014 23:14:02 +0000 Subject: [PATCH] Fix atomic::fence documentation typos --- src/libcore/atomic.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/atomic.rs b/src/libcore/atomic.rs index c3172a66f6b..0b1e08a5f43 100644 --- a/src/libcore/atomic.rs +++ b/src/libcore/atomic.rs @@ -717,15 +717,15 @@ unsafe fn atomic_xor(dst: *mut T, val: T, order: Ordering) -> T { /// A fence 'A' which has `Release` ordering semantics, synchronizes with a /// fence 'B' with (at least) `Acquire` semantics, if and only if there exists /// atomic operations X and Y, both operating on some atomic object 'M' such -/// that A is sequenced before X, Y is synchronized before B and Y observers +/// that A is sequenced before X, Y is synchronized before B and Y observes /// the change to M. This provides a happens-before dependence between A and B. /// /// Atomic operations with `Release` or `Acquire` semantics can also synchronize /// with a fence. /// -/// A fence with has `SeqCst` ordering, in addition to having both `Acquire` and -/// `Release` semantics, participates in the global program order of the other -/// `SeqCst` operations and/or fences. +/// A fence which has `SeqCst` ordering, in addition to having both `Acquire` +/// and `Release` semantics, participates in the global program order of the +/// other `SeqCst` operations and/or fences. /// /// Accepts `Acquire`, `Release`, `AcqRel` and `SeqCst` orderings. ///