diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-06-29 02:43:51 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-06-29 17:33:18 -0400 |
| commit | d820355213d433c85ef49bae03022d754ca2f5d5 (patch) | |
| tree | 3ebbcc88f530473ececcd01f9ee2f2738063115f /src | |
| parent | c86df3a65cc239fd69b9a8d628808498cdb07e0d (diff) | |
| download | rust-d820355213d433c85ef49bae03022d754ca2f5d5.tar.gz rust-d820355213d433c85ef49bae03022d754ca2f5d5.zip | |
fix code block syntax in two docstrings
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/iterator.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/iterator.rs b/src/libstd/iterator.rs index 976ca8bae7a..55eae8f8fae 100644 --- a/src/libstd/iterator.rs +++ b/src/libstd/iterator.rs @@ -356,20 +356,20 @@ pub trait IteratorUtil<A> { /// /// # Example /// - /// --- {.rust} + /// ~~~ {.rust} /// let xs = [-3, 0, 1, 5, -10]; /// assert_eq!(*xs.iter().max_by(|x| x.abs()).unwrap(), -10); - /// --- + /// ~~~ fn max_by<B: Ord>(&mut self, f: &fn(&A) -> B) -> Option<A>; /// Return the element that gives the minimum value from the specfied function /// /// # Example /// - /// --- {.rust} + /// ~~~ {.rust} /// let xs = [-3, 0, 1, 5, -10]; /// assert_eq!(*xs.iter().min_by(|x| x.abs()).unwrap(), 0); - /// --- + /// ~~~ fn min_by<B: Ord>(&mut self, f: &fn(&A) -> B) -> Option<A>; } |
