Skip to content

Commit

Permalink
docs: fix missing backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Feb 22, 2017
1 parent 8ef2e9c commit 44bafaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<T> LazyCell<T> {

/// 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() {
Expand Down Expand Up @@ -127,7 +127,7 @@ impl<T> AtomicLazyCell<T> {

/// 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);
Expand Down

0 comments on commit 44bafaa

Please sign in to comment.