diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-11-09 23:11:06 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-11-09 23:11:06 -0800 |
commit | aaea4afbf3b47d623f396cb1eae247fa92053032 (patch) | |
tree | d462a508e545d5ec3637557b632cd0b7366e56cd /examples/crossBuilds/simple2/js/shared/main/scala/simple/Simple.scala | |
parent | 52306f10ce3d1e462b171688de04b37174c0b74a (diff) | |
download | hands-on-scala-js-aaea4afbf3b47d623f396cb1eae247fa92053032.tar.gz hands-on-scala-js-aaea4afbf3b47d623f396cb1eae247fa92053032.tar.bz2 hands-on-scala-js-aaea4afbf3b47d623f396cb1eae247fa92053032.zip |
.
Diffstat (limited to 'examples/crossBuilds/simple2/js/shared/main/scala/simple/Simple.scala')
-rw-r--r-- | examples/crossBuilds/simple2/js/shared/main/scala/simple/Simple.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/crossBuilds/simple2/js/shared/main/scala/simple/Simple.scala b/examples/crossBuilds/simple2/js/shared/main/scala/simple/Simple.scala index d3b0278..4ed0285 100644 --- a/examples/crossBuilds/simple2/js/shared/main/scala/simple/Simple.scala +++ b/examples/crossBuilds/simple2/js/shared/main/scala/simple/Simple.scala @@ -1,7 +1,7 @@ /*shared/main/scala/simple/Simple.scala*/ package simple object Simple{ - def formatTimes(timestamps: Seq[Long]): String = { - timestamps.map(Platform.format).mkString("\n") + def formatTimes(timestamps: Seq[Long]): Seq[String] = { + timestamps.map(Platform.format).map(_.dropRight(5)) } }
\ No newline at end of file |