From b460e4516d79d1f13b97625ee39246290dcff022 Mon Sep 17 00:00:00 2001 From: Wei-Ming Yang Date: Tue, 19 May 2015 12:40:01 +0800 Subject: [PATCH] Update iter.rs fixed a mistake. --- src/libcore/iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index cab79d938c374..bc839eb72b147 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -3114,7 +3114,7 @@ pub mod order { } /// Returns `a` < `b` lexicographically (Using partial order, `PartialOrd`) - pub fn lt(mut a: L, mut b: R) -> bool where + pub fn lt(mut a: L, mut b: R) -> bool where L::Item: PartialOrd, { loop {