diff --git a/src/reference/04-Howto/12-Howto-Triggered.md b/src/reference/04-Howto/12-Howto-Triggered.md index 3648805c0..7dac51863 100644 --- a/src/reference/04-Howto/12-Howto-Triggered.md +++ b/src/reference/04-Howto/12-Howto-Triggered.md @@ -73,5 +73,7 @@ watchSources += baseDirectory.value / "demo" / "examples.txt" milliseconds. The default value is `500 ms`. To change it to `1 s`, ```scala -pollInterval := 1000 // in ms +import scala.concurrent.duration._ + +pollInterval := 1.second ``` diff --git a/src/reference/04-Howto/90-Examples/01-Basic-Def-Examples.md b/src/reference/04-Howto/90-Examples/01-Basic-Def-Examples.md index 2172f4bc3..09d04a232 100644 --- a/src/reference/04-Howto/90-Examples/01-Basic-Def-Examples.md +++ b/src/reference/04-Howto/90-Examples/01-Basic-Def-Examples.md @@ -13,6 +13,8 @@ Listed here are some examples of settings (each setting is independent). See [.sbt build definition][Basic-Def] for details. ```scala +import scala.concurrent.duration._ + // factor out common settings into a sequence lazy val commonSettings = Seq( organization := "org.myproject", @@ -52,7 +54,7 @@ lazy val root = (project in file(".")) maxErrors := 20, // increase the time between polling for file changes when using continuous execution - pollInterval := 1000, + pollInterval := 1.second, // append several options to the list of options passed to the Java compiler javacOptions ++= Seq("-source", "1.5", "-target", "1.5"),