Skip to content

Commit

Permalink
docs: put types in between backticks
Browse files Browse the repository at this point in the history
Put all types in documentation in between backticks.
  • Loading branch information
indiv0 committed Apr 18, 2016
1 parent 8955893 commit 607cf93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#![cfg_attr(feature = "nightly", feature(plugin))]
#![cfg_attr(feature = "clippy", plugin(clippy))]

//! This crate provides a LazyCell struct which acts as a lazily filled Cell,
//! but with frozen contents.
//! This crate provides a `LazyCell` struct which acts as a lazily filled
//! `Cell`, but with frozen contents.
//!
//! With a `RefCell`, the inner contents cannot be borrowed for the lifetime of
//! the entire object, but only of the borrows returned. A `LazyCell` is a
Expand Down Expand Up @@ -44,13 +44,13 @@
use std::cell::RefCell;
use std::mem;

/// A lazily filled Cell, with frozen contents.
/// A lazily filled `Cell`, with frozen contents.
pub struct LazyCell<T> {
inner: RefCell<Option<T>>,
}

impl<T> LazyCell<T> {
/// Creates a new empty lazy cell.
/// Creates a new, empty, `LazyCell`.
pub fn new() -> LazyCell<T> {
LazyCell { inner: RefCell::new(None) }
}
Expand Down

0 comments on commit 607cf93

Please sign in to comment.