summaryrefslogtreecommitdiff
path: root/src/build
diff options
context:
space:
mode:
authorvsalvis <salvisbergvera@gmail.com>2015-06-03 16:20:00 +0200
committervsalvis <salvisbergvera@gmail.com>2015-06-17 23:39:09 +0200
commitcc8f2f6695e0b5c65439466e746a5df99ab36d84 (patch)
treea00f0fc46c2810b1e3d53d9b8ad0588c19ddac71 /src/build
parent0bc7fa67d130f75079df79814b33ef073254e27a (diff)
downloadscala-cc8f2f6695e0b5c65439466e746a5df99ab36d84.tar.gz
scala-cc8f2f6695e0b5c65439466e746a5df99ab36d84.tar.bz2
scala-cc8f2f6695e0b5c65439466e746a5df99ab36d84.zip
SI-8858 doc: fix note about PartialFunction in Function0, F1 and F2
Diffstat (limited to 'src/build')
-rw-r--r--src/build/genprod.scala13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/build/genprod.scala b/src/build/genprod.scala
index ed436fe2e4..b470348e8c 100644
--- a/src/build/genprod.scala
+++ b/src/build/genprod.scala
@@ -123,7 +123,10 @@ object FunctionOne extends Function(1) {
* def apply(x: Int): Int = x + 1
* }
* assert(succ(0) == anonfun1(0))
- * """)
+ * """) + """
+ *
+ * Note that the difference between `Function1` and [[scala.PartialFunction]]
+ * is that the latter can specify inputs which it will not handle."""
override def moreMethods = """
/** Composes two instances of Function1 in a new Function1, with this function applied last.
@@ -178,13 +181,7 @@ class Function(val i: Int) extends Group("Function") with Arity {
*
* {{{
* object Main extends App {%s}
- * }}}
- *
- * Note that `Function1` does not define a total function, as might
- * be suggested by the existence of [[scala.PartialFunction]]. The only
- * distinction between `Function1` and `PartialFunction` is that the
- * latter can specify inputs which it will not handle.
-"""
+ * }}}"""
def toStr() = "\"" + ("<function%d>" format i) + "\""
def apply() = {