summaryrefslogtreecommitdiff
path: root/src/libcore/cmp.rs
diff options
context:
space:
mode:
authorKevin Butler <haqkrs@gmail.com>2015-11-03 15:27:03 +0000
committerKevin Butler <haqkrs@gmail.com>2015-11-12 05:16:08 +0000
commit82784cb89d590106a30dd2143120472ec269c2f1 (patch)
treedcb237c50d9d987ed9b273a0ff39e73abd5fe997 /src/libcore/cmp.rs
parentbbf964afea55f627eee047988d1cc44c386b23ba (diff)
downloadrust-82784cb89d590106a30dd2143120472ec269c2f1.tar.gz
libcore: deny warnings in doctests
Diffstat (limited to 'src/libcore/cmp.rs')
-rw-r--r--src/libcore/cmp.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs
index 302c9d0c369..5458a7b9c38 100644
--- a/src/libcore/cmp.rs
+++ b/src/libcore/cmp.rs
@@ -140,8 +140,6 @@ impl Ordering {
/// This method can be used to reverse a comparison:
///
/// ```
- /// use std::cmp::Ordering;
- ///
/// let mut data: &mut [_] = &mut [2, 10, 5, 8];
///
/// // sort the array from largest to smallest.
@@ -263,8 +261,6 @@ pub trait PartialOrd<Rhs: ?Sized = Self>: PartialEq<Rhs> {
/// # Examples
///
/// ```
- /// use std::cmp::Ordering;
- ///
/// let result = 1.0 < 2.0;
/// assert_eq!(result, true);
///