Update actor-lifecycle.md (#29391)

This commit is contained in:
Łukasz Drygała 2020-07-16 13:41:18 +02:00 committed by GitHub
parent 6d290d6699
commit 1290befec8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ is a tool that mimics the old style of starting up actors.
Child actors are created and started with @apidoc[typed.*.ActorContext]'s `spawn`.
In the example below, when the root actor
is started, it spawns a child actor described by the `HelloWorld` behavior. Additionally, when the root actor receives a
`Start` message, it creates a child actor defined by the behavior `HelloWorldBot`:
`SayHello` message, it creates a child actor defined by the behavior `HelloWorldBot`:
Scala
: @@snip [IntroSpec.scala](/akka-actor-typed-tests/src/test/scala/docs/akka/typed/IntroSpec.scala) { #hello-world-main }