summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library/scala/Predef.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala
index 775daf40f3..ab3bfc7650 100644
--- a/src/library/scala/Predef.scala
+++ b/src/library/scala/Predef.scala
@@ -366,7 +366,7 @@ object Predef {
implicit def string2ordered(x: String): Ordered[String] = new Ordered[String] with Proxy {
def self: Any = x;
def compare [b >: String <% Ordered[b]](y: b): int = y match {
- case y1: String => x compare y1;
+ case y1: String => x compareTo y1;
case _ => -(y compare x)
}
}