Update scala/app snippet to extend App

Earlier versions of Scala let its users extend a trait `Application` to
avoid boilerplate when writing a main program. The `Application` trait
was deprecated in Scala 2.9, and replaced by the `App` trait
(`Application` was subsequently removed in Scala 2.11). This commit
replaces `Application` with `App` in the `app` snippet.
This commit is contained in:
Christian Söderberg 2014-09-04 16:40:38 -07:00
parent 5dd2838cdf
commit c335556db4
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# -*- mode: snippet -*-
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
#name : object name extends Application
#name : object name extends App
# key: app
# --
object ${1:name} extends Application {
object ${1:name} extends App {
$0
}