From 95b0d406d696d19785b8ed232e0f3e7bb0a00b52 Mon Sep 17 00:00:00 2001 From: petermz Date: Wed, 23 Aug 2017 11:43:02 +0300 Subject: [PATCH] Fixed a typo in a generic type declaration in tutorial (#23559) --- akka-docs/src/main/paradox/scala/guide/tutorial_4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-docs/src/main/paradox/scala/guide/tutorial_4.md b/akka-docs/src/main/paradox/scala/guide/tutorial_4.md index da385569a1..675e93e5b9 100644 --- a/akka-docs/src/main/paradox/scala/guide/tutorial_4.md +++ b/akka-docs/src/main/paradox/scala/guide/tutorial_4.md @@ -160,7 +160,7 @@ Our device group actor needs to include functionality that: 1. Starts watching new device actors when they are created. 2. Removes a device actor from the @scala[`Map[String, ActorRef]`] @java[`Map`] — which maps devices to device actors — when the notification indicates it has stopped. -Unfortunately, the `Terminated` message only contains the `ActorRef` of the child actor. We need the actor's ID to remove it from the map of existing device to device actor mappings. To be able to do this removal, we need to introduce another placeholder, @scala[`Map[String, ActorRef]`] @java[`Map`], that allow us to find out the device ID corresponding to a given `ActorRef`. +Unfortunately, the `Terminated` message only contains the `ActorRef` of the child actor. We need the actor's ID to remove it from the map of existing device to device actor mappings. To be able to do this removal, we need to introduce another placeholder, @scala[`Map[ActorRef, String]`] @java[`Map`], that allow us to find out the device ID corresponding to a given `ActorRef`. Adding the functionality to identify the actor results in this: