Skip to content

Commit 7b0b4a8

Browse files
bddaptqwewe
authored andcommitted
docs(book): fix on_start return type in example
1 parent a12eea9 commit 7b0b4a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core-concepts/actors.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl Actor for MyActor {
5757
type Args = Self;
5858
type Error = Infallible;
5959

60-
async fn on_start(state: Self::Args, actor_ref: ActorRef<Self>) -> Result<(), Self::Error> {
60+
async fn on_start(state: Self::Args, actor_ref: ActorRef<Self>) -> Result<Self, Self::Error> {
6161
println!("Actor started");
6262
Ok(MyActor)
6363
}

0 commit comments

Comments
 (0)