summaryrefslogtreecommitdiff
path: root/examples/crossBuilds/simple2/js/shared/main/scala/simple/Simple.scala
diff options
context:
space:
mode:
authorLi Haoyi <haoyi@dropbox.com>2014-11-09 23:11:06 -0800
committerLi Haoyi <haoyi@dropbox.com>2014-11-09 23:11:06 -0800
commitaaea4afbf3b47d623f396cb1eae247fa92053032 (patch)
treed462a508e545d5ec3637557b632cd0b7366e56cd /examples/crossBuilds/simple2/js/shared/main/scala/simple/Simple.scala
parent52306f10ce3d1e462b171688de04b37174c0b74a (diff)
downloadhands-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.scala4
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