Evaluate # fn in docs

I searched for times when we were hiding functions with # in the documentation,
and fixed them to not use it unless neccesary.

I also made random improvements whenever I changed something. For example,
I changed Example to Examples, for consistency.

Fixes #13423
This commit is contained in:
Steve Klabnik
2015-01-12 16:59:34 -05:00
parent a03701defa
commit 078bd498b9
14 changed files with 95 additions and 102 deletions

View File

@@ -11,14 +11,18 @@
//! A type representing values that may be computed concurrently and operations
//! for working with them.
//!
//! # Example
//! # Examples
//!
//! ```rust
//! ```
//! use std::sync::Future;
//! # fn fib(n: uint) -> uint {42};
//! # fn make_a_sandwich() {};
//! let mut delayed_fib = Future::spawn(move|| { fib(5000) });
//! make_a_sandwich();
//!
//! // a fake, for now
//! fn fib(n: u32) -> u32 { 42 };
//!
//! let mut delayed_fib = Future::spawn(move || fib(5000));
//!
//! // do stuff...
//!
//! println!("fib(5000) = {}", delayed_fib.get())
//! ```