From dd84e7535f22fae7a9eb76e3946070c78aba6abd Mon Sep 17 00:00:00 2001 From: Tyler Jones Date: Thu, 6 May 2021 16:47:02 -0600 Subject: [PATCH] Updating the example code in the readme. I think `actor_of` was replaced with `sys_actor_of` ? On `riker = "0.4.2"` I get an error that the example function does not exist, but checking source I see this one is public. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b04e1c9..da654d8b 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ impl Actor for MyActor { fn main() { let sys = ActorSystem::new().unwrap(); - let my_actor = sys.actor_of::("my-actor").unwrap(); + let my_actor = sys.sys_actor_of::("my-actor").unwrap(); my_actor.tell("Hello my actor!".to_string(), None);