aboutsummaryrefslogtreecommitdiff
path: root/examples/scalafmt-example/src
diff options
context:
space:
mode:
authorrockjam <rockjam@actor.im>2016-10-02 19:34:10 +0300
committerrockjam <rockjam@actor.im>2016-10-02 23:56:34 +0300
commitaea470195de6cb8f0111e5908917d64889f3c753 (patch)
tree18d537835d16e08afb23706b8546045da4da9f9f /examples/scalafmt-example/src
parent3e35d0809240a3379dd3d71d42655e00b9cff421 (diff)
downloadcbt-aea470195de6cb8f0111e5908917d64889f3c753.tar.gz
cbt-aea470195de6cb8f0111e5908917d64889f3c753.tar.bz2
cbt-aea470195de6cb8f0111e5908917d64889f3c753.zip
upgrade scalafmt 0.3.1 -> 0.4.2; load scalafmt config from config file
Diffstat (limited to 'examples/scalafmt-example/src')
-rw-r--r--examples/scalafmt-example/src/Main.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/scalafmt-example/src/Main.scala b/examples/scalafmt-example/src/Main.scala
index 595cede..465e27a 100644
--- a/examples/scalafmt-example/src/Main.scala
+++ b/examples/scalafmt-example/src/Main.scala
@@ -1,16 +1,16 @@
-import scala.concurrent.{Await, Future}
+import scala.concurrent.{ Await, Future }
import scala.concurrent.duration._
object Main extends App {
println("fooo")
val futureRes = Await.result(Future.successful(1), 5.seconds)
List(1, 2, 4, 5, 6) match {
- case h :: _ => println("not empty list")
- case Nil => println("empty list")
+ case h :: _ ⇒ println("not empty list")
+ case Nil ⇒ println("empty list")
}
- List(1 -> 2, 2 -> 3, 3 -> 4) match {
- case (1, 2) :: _ => 90 -> 1
- case (22, 44) :: _ => 1 -> 150
+ List(1 → 2, 2 → 3, 3 → 4) match {
+ case (1, 2) :: _ ⇒ 90 → 1
+ case (22, 44) :: _ ⇒ 1 → 150
}
}