diff options
author | mihaylov <mihaylov@epfl.ch> | 2004-04-05 10:13:55 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2004-04-05 10:13:55 +0000 |
commit | 43505887a331fbf647ba39a85bdf16c321ce8037 (patch) | |
tree | 78d881dfcc134b3e73d9a0918db5415f98ee5ab5 /doc | |
parent | b33c785dbb2308f82a5dd477050c7833bf47840d (diff) | |
download | scala-43505887a331fbf647ba39a85bdf16c321ce8037.tar.gz scala-43505887a331fbf647ba39a85bdf16c321ce8037.tar.bz2 scala-43505887a331fbf647ba39a85bdf16c321ce8037.zip |
- In chapter 8 corrected the type of the elemen...
- In chapter 8 corrected the type of the element of the NonEmptySet
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/ExamplesPart.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/reference/ExamplesPart.tex b/doc/reference/ExamplesPart.tex index 299d573af7..f065da8978 100644 --- a/doc/reference/ExamplesPart.tex +++ b/doc/reference/ExamplesPart.tex @@ -2370,7 +2370,7 @@ class EmptySet[a <: Ord[a]] extends Set[a] { \begin{lstlisting} class NonEmptySet[a <: Ord[a]] - (elem:int, left: Set[a], right: Set[a]) extends Set[a] { + (elem:a, left: Set[a], right: Set[a]) extends Set[a] { def contains(x: a): boolean = if (x < elem) left contains x else if (x > elem) right contains x |