diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/build/genprod.scala | 2 | ||||
-rw-r--r-- | src/library/scala/Enumeration.scala | 2 | ||||
-rw-r--r-- | src/library/scala/collection/immutable/Stream.scala | 2 | ||||
-rw-r--r-- | src/library/scala/unchecked.scala | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/build/genprod.scala b/src/build/genprod.scala index 557cbc65de..9e5b6810c1 100644 --- a/src/build/genprod.scala +++ b/src/build/genprod.scala @@ -174,7 +174,7 @@ class Function(val i: Int) extends Group("Function") with Arity { * shorthand for the anonymous class definition %s: * * {{{ - * object Main extends Application { %s } + * object Main extends App { %s } * }}}""" def toStr() = "\"" + ("<function%d>" format i) + "\"" diff --git a/src/library/scala/Enumeration.scala b/src/library/scala/Enumeration.scala index 0feac3143f..65a5cfb55a 100644 --- a/src/library/scala/Enumeration.scala +++ b/src/library/scala/Enumeration.scala @@ -26,7 +26,7 @@ import java.util.regex.Pattern * identifier path of the enumeration instance). * * @example {{{ - * object Main extends Application { + * object Main extends App { * * object WeekDay extends Enumeration { * type WeekDay = Value diff --git a/src/library/scala/collection/immutable/Stream.scala b/src/library/scala/collection/immutable/Stream.scala index 47bd5610b2..7e8ec48d20 100644 --- a/src/library/scala/collection/immutable/Stream.scala +++ b/src/library/scala/collection/immutable/Stream.scala @@ -18,7 +18,7 @@ import Stream.cons * are only evaluated when they are needed. Here is an example: * * {{{ - * object Main extends Application { + * object Main extends App { * * def from(n: Int): Stream[Int] = * Stream.cons(n, from(n + 1)) diff --git a/src/library/scala/unchecked.scala b/src/library/scala/unchecked.scala index 4f1f3f1957..10d34312cf 100644 --- a/src/library/scala/unchecked.scala +++ b/src/library/scala/unchecked.scala @@ -15,7 +15,7 @@ package scala * suppressed. * For example, compiling the code: * {{{ - * object test extends Application { + * object test extends App { * def f(x: Option[Int]) = x match { * case Some(y) => y * } |