summaryrefslogtreecommitdiff
path: root/doc/reference/ExamplesPart.tex
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2004-04-05 10:13:55 +0000
committermihaylov <mihaylov@epfl.ch>2004-04-05 10:13:55 +0000
commit43505887a331fbf647ba39a85bdf16c321ce8037 (patch)
tree78d881dfcc134b3e73d9a0918db5415f98ee5ab5 /doc/reference/ExamplesPart.tex
parentb33c785dbb2308f82a5dd477050c7833bf47840d (diff)
downloadscala-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/reference/ExamplesPart.tex')
-rw-r--r--doc/reference/ExamplesPart.tex2
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