From 9052aebd9a1653584ec7a4be17982d06b5789a6b Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 29 Jun 2013 02:43:51 -0400 Subject: [PATCH] fix code block syntax in two docstrings --- src/libstd/iterator.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libstd/iterator.rs b/src/libstd/iterator.rs index 78940143f4e3d..c0c0dc5493672 100644 --- a/src/libstd/iterator.rs +++ b/src/libstd/iterator.rs @@ -356,20 +356,20 @@ pub trait IteratorUtil { /// /// # Example /// - /// --- {.rust} + /// ~~~ {.rust} /// let xs = [-3, 0, 1, 5, -10]; /// assert_eq!(*xs.iter().max_by(|x| x.abs()).unwrap(), -10); - /// --- + /// ~~~ fn max_by(&mut self, f: &fn(&A) -> B) -> Option; /// 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(&mut self, f: &fn(&A) -> B) -> Option; }