From 7eb310f8ce6634f63ba698d74cd38f3632a6c9f0 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 6 Mar 2018 00:44:45 -0800 Subject: [PATCH] fix guide --- guide/src/qs_14.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/guide/src/qs_14.md b/guide/src/qs_14.md index 72827e4e..f7dd6e7f 100644 --- a/guide/src/qs_14.md +++ b/guide/src/qs_14.md @@ -24,11 +24,13 @@ impl Actor for DbExecutor { This is definition of our actor. Now we need to define *create user* message and response. ```rust,ignore -#[derive(Message)] -#[rtype(User, Error)] struct CreateUser { name: String, } + +impl Message for CreateUser { + type Result = Result; +} ``` We can send `CreateUser` message to `DbExecutor` actor, and as result we get