diff --git a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala index b38ec43276..7d21374f5b 100644 --- a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala +++ b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala @@ -702,9 +702,9 @@ trait TestKitBase { * class Test extends TestKit(ActorSystem()) { * try { * - * val test = system.actorOf(Props[SomeActor] + * val test = system.actorOf(Props[SomeActor]) * - * within (1 second) { + * within (1.second) { * test ! SomeWork * expectMsg(Result1) // bounded to 1 second * expectMsg(Result2) // bounded to the remainder of the 1 second