Skip to content

Commit d820355

Browse files
committed
fix code block syntax in two docstrings
1 parent c86df3a commit d820355

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/iterator.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,20 +356,20 @@ pub trait IteratorUtil<A> {
356356
///
357357
/// # Example
358358
///
359-
/// --- {.rust}
359+
/// ~~~ {.rust}
360360
/// let xs = [-3, 0, 1, 5, -10];
361361
/// assert_eq!(*xs.iter().max_by(|x| x.abs()).unwrap(), -10);
362-
/// ---
362+
/// ~~~
363363
fn max_by<B: Ord>(&mut self, f: &fn(&A) -> B) -> Option<A>;
364364

365365
/// Return the element that gives the minimum value from the specfied function
366366
///
367367
/// # Example
368368
///
369-
/// --- {.rust}
369+
/// ~~~ {.rust}
370370
/// let xs = [-3, 0, 1, 5, -10];
371371
/// assert_eq!(*xs.iter().min_by(|x| x.abs()).unwrap(), 0);
372-
/// ---
372+
/// ~~~
373373
fn min_by<B: Ord>(&mut self, f: &fn(&A) -> B) -> Option<A>;
374374
}
375375

0 commit comments

Comments
 (0)