Fix 'Relaaxed' typo in code comment
This commit is contained in:
parent
4c246ecb64
commit
e2b6b02e3a
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ impl<T: ?Sized> Arc<T> {
|
||||||
reason = "Weak pointers may not belong in this module.")]
|
reason = "Weak pointers may not belong in this module.")]
|
||||||
pub fn downgrade(&self) -> Weak<T> {
|
pub fn downgrade(&self) -> Weak<T> {
|
||||||
loop {
|
loop {
|
||||||
// This Relaaxed is OK because we're checking the value in the CAS
|
// This Relaxed is OK because we're checking the value in the CAS
|
||||||
// below.
|
// below.
|
||||||
let cur = self.inner().weak.load(Relaxed);
|
let cur = self.inner().weak.load(Relaxed);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue