diff options
author | michelou <michelou@epfl.ch> | 2003-07-16 11:06:34 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2003-07-16 11:06:34 +0000 |
commit | 8ddba4ddedd0e92745f05a856e3de8483da4f301 (patch) | |
tree | fd57c0fde4bdb2d9ec1819ac08db89af1b2f8736 /doc/reference/examples.verb.tex | |
parent | 08ba2872c4c078fccaee6da60f937a85ec6a0b2f (diff) | |
download | scala-8ddba4ddedd0e92745f05a856e3de8483da4f301.tar.gz scala-8ddba4ddedd0e92745f05a856e3de8483da4f301.tar.bz2 scala-8ddba4ddedd0e92745f05a856e3de8483da4f301.zip |
corrected typos
Diffstat (limited to 'doc/reference/examples.verb.tex')
-rw-r--r-- | doc/reference/examples.verb.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/reference/examples.verb.tex b/doc/reference/examples.verb.tex index 8aed1941c6..081bd73dcb 100644 --- a/doc/reference/examples.verb.tex +++ b/doc/reference/examples.verb.tex @@ -922,7 +922,7 @@ def sumReciprocals(a: int, b: int): double = sum(x: int => 1.0/x, a, b); Often, the Scala compiler can deduce the parameter type(s) from the context of the anonymous function. In this case, they can be omitted. For instance, in the case of \verb@sumInts@, \verb@sumCubes@ and -verb@sumReciprocals@, one knows from the type of +\verb@sumReciprocals@, one knows from the type of \verb@sum@ that the first parameter must be a function of type \verb@int => double@. Hence, the parameter type \verb@int@ is redundant and may be omitted: @@ -2427,7 +2427,7 @@ abstract class List[+a] { \end{verbatim} \verb@List@ is an abstract class, so one cannot define elements by calling the empty \verb@List@ constructor (e.g. by -\verb@new List). The class has a type parameter \verb@a@. It is +\verb@new List@). The class has a type parameter \verb@a@. It is co-variant in this parameter, which means that \verb@List[S] <: List[T]@ for all types \verb@S@ and \verb@T@ such that \verb@S <: T@. The class is situated in the package |