summaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-04-20 11:33:44 +0000
committermichelou <michelou@epfl.ch>2006-04-20 11:33:44 +0000
commitacc947a63b310669bb206f6dacd67cd7d8379fd3 (patch)
treed2cbd511ca8be1f63567a95f45f82c447756e3f3 /docs/examples
parent6c633ce6bb8dbe86a36fb17da18912e19bae8e56 (diff)
downloadscala-acc947a63b310669bb206f6dacd67cd7d8379fd3.tar.gz
scala-acc947a63b310669bb206f6dacd67cd7d8379fd3.tar.bz2
scala-acc947a63b310669bb206f6dacd67cd7d8379fd3.zip
updated Ant build file for testing Scala examples
replaced 'compareTo' by 'compare' in file examples/maps.scala
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/maps.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/maps.scala b/docs/examples/maps.scala
index 8b5158005b..1b5d41df54 100644
--- a/docs/examples/maps.scala
+++ b/docs/examples/maps.scala
@@ -157,7 +157,7 @@ object maps {
def month = m
def day = d
- def compareTo[b >: Date <% Ordered[b]](that: b): int = that match {
+ override def compare [b >: Date <% Ordered[b]](that: b): Int = that match {
case other: Date =>
if ((year == other.year) &&
(month == other.month) &&