diff --git a/akka-docs/rst/project/migration-guide-2.1.x-2.2.x.rst b/akka-docs/rst/project/migration-guide-2.1.x-2.2.x.rst index 56a5174fcb..f2277aab07 100644 --- a/akka-docs/rst/project/migration-guide-2.1.x-2.2.x.rst +++ b/akka-docs/rst/project/migration-guide-2.1.x-2.2.x.rst @@ -320,7 +320,7 @@ Instead, use actorSelection followed by identify request, and watch the verified ref = actorRef context watch ref case ActorIdentity(_, None) => // not alive - case Terminated(`ref`) => // ... + case Terminated(r) if r == ref => // ... } Use ``watch`` instead of ``isTerminated``