diff --git a/src/lib.rs b/src/lib.rs index 5744868..901d977 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -60,7 +60,7 @@ impl LazyCell { /// Put a value into this cell. /// - /// This function will return Err(value) is the cell is already full. + /// This function will return `Err(value)` is the cell is already full. pub fn fill(&self, t: T) -> Result<(), T> { let mut slot = unsafe { &mut *self.inner.get() }; if slot.is_some() { @@ -127,7 +127,7 @@ impl AtomicLazyCell { /// Put a value into this cell. /// - /// This function will return Err(value) is the cell is already full. + /// This function will return `Err(value)` is the cell is already full. pub fn fill(&self, t: T) -> Result<(), T> { if NONE != self.state.compare_and_swap(NONE, LOCK, Ordering::Acquire) { return Err(t);