diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-16 19:02:41 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-16 19:02:41 +0000 |
commit | 5cdb213d7d24ae357c518823e1054cb302b250eb (patch) | |
tree | 90812d869840df297b4fa9afa0a7dae43ddc1d9a /src/library/scala/Function2.scala | |
parent | 87134363a20bc81297037d8858ee88e961f255f9 (diff) | |
download | scala-5cdb213d7d24ae357c518823e1054cb302b250eb.tar.gz scala-5cdb213d7d24ae357c518823e1054cb302b250eb.tar.bz2 scala-5cdb213d7d24ae357c518823e1054cb302b250eb.zip |
Documentation being generated by genprod was pr...
Documentation being generated by genprod was pretty busted both in terms
of formatting and correctness. Spruced it up. Eliminated some of the
more distracting HTML entities in compiler source. No review.
Diffstat (limited to 'src/library/scala/Function2.scala')
-rw-r--r-- | src/library/scala/Function2.scala | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/src/library/scala/Function2.scala b/src/library/scala/Function2.scala index 545bbb151d..cbc8f5bb99 100644 --- a/src/library/scala/Function2.scala +++ b/src/library/scala/Function2.scala @@ -6,34 +6,31 @@ ** |/ ** \* */ - -// generated by genprod on Thu Sep 16 10:52:35 PDT 2010 (with fancy comment) (with extra methods) +// generated by genprod on Sat Oct 16 11:19:09 PDT 2010 (with fancy comment) (with extra methods) package scala -/** <p> - * Function with 2 parameters. - * </p> - * <p> +/** Function with 2 parameters. + * * In the following example the definition of - * <code>max</code> is a shorthand for the anonymous class - * definition <code>anonfun2</code>: - * </p> - * <pre> - * <b>object</b> Main <b>extends</b> Application { + * max is a shorthand for the anonymous class + * definition anonfun2: * - * <b>val</b> max = (x: Int, y: Int) => <b>if</b> (x < y) y <b>else</b> x + * {{{ + * object Main extends Application { + * val max = (x: Int, y: Int) => if (x < y) y else x * - * <b>val</b> anonfun2 = <b>new</b> Function2[Int, Int, Int] { - * <b>def</b> apply(x: Int, y: Int): Int = <b>if</b> (x < y) y <b>else</b> x + * val anonfun2 = new Function2[Int, Int, Int] { + * def apply(x: Int, y: Int): Int = if (x < y) y else x * } * * println(max(0, 1)) * println(anonfun2(0, 1)) - * }</pre> + * } + * }}} */ trait Function2[@specialized(scala.Int, scala.Long, scala.Double) -T1, @specialized(scala.Int, scala.Long, scala.Double) -T2, @specialized(scala.Unit, scala.Boolean, scala.Int, scala.Float, scala.Long, scala.Double) +R] extends AnyRef { self => def apply(v1:T1,v2:T2): R |