=doc Fix how to access deadLetters from system in actor (#20665)

When a developer copy `system.deadLetters` from documentation, it does not work in Actor and system must get from context.
This commit is contained in:
Saeed Zarinfam 2016-05-31 14:35:55 +04:30 committed by Konrad Malawski
parent 6a13d99bfc
commit 6b08767137

View file

@ -478,7 +478,7 @@ class ActorDocSpec extends AkkaSpec("""
class WatchActor extends Actor {
val child = context.actorOf(Props.empty, "child")
context.watch(child) // <-- this is the only call needed for registration
var lastSender = system.deadLetters
var lastSender = context.system.deadLetters
def receive = {
case "kill" =>