summaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2007-07-10 13:41:29 +0000
committerPhilipp Haller <hallerp@gmail.com>2007-07-10 13:41:29 +0000
commit212f89bcc6a31a2facb338e5dfb02d7b61c26891 (patch)
tree91716dc71eb0e5c18354a5994d4fea74a33141bd /docs/examples
parent01d6a088daf681a89fcf6443039fba3d02f6c999 (diff)
downloadscala-212f89bcc6a31a2facb338e5dfb02d7b61c26891.tar.gz
scala-212f89bcc6a31a2facb338e5dfb02d7b61c26891.tar.bz2
scala-212f89bcc6a31a2facb338e5dfb02d7b61c26891.zip
Replaced AllRef with Null in maps example.
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/maps.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/maps.scala b/docs/examples/maps.scala
index ac54068730..d545b50ab9 100644
--- a/docs/examples/maps.scala
+++ b/docs/examples/maps.scala
@@ -15,7 +15,7 @@ object maps {
val empty: map
}
- class AlgBinTree[kt >: AllRef <: Ordered[kt], vt >: AllRef <: AnyRef]() extends MapStruct[kt, vt] {
+ class AlgBinTree[kt >: Null <: Ordered[kt], vt >: Null <: AnyRef]() extends MapStruct[kt, vt] {
type map = AlgMap
val empty: AlgMap = Empty()
@@ -65,7 +65,7 @@ object maps {
}
}
- class OOBinTree[kt >: AllRef <: Ordered[kt], vt >: AllRef <: AnyRef]() extends MapStruct[kt, vt] {
+ class OOBinTree[kt >: Null <: Ordered[kt], vt >: Null <: AnyRef]() extends MapStruct[kt, vt] {
type map = OOMap
trait OOMap extends Map {
@@ -105,7 +105,7 @@ object maps {
}
}
- class MutBinTree[kt >: AllRef <: Ordered[kt], vt >: AllRef <: AnyRef]() extends MapStruct[kt, vt] {
+ class MutBinTree[kt >: Null <: Ordered[kt], vt >: Null <: AnyRef]() extends MapStruct[kt, vt] {
type map = MutMap
class MutMap(key: kt, value: vt) extends Map {
val k = key