Skip to content

Commit

Permalink
fix: async block required in doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
kinrezC committed Feb 7, 2024
1 parent 49b0da6 commit b0d0b64
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn setup_world(id: &str) -> World {
world.add_agent(agent);
}

fn main() {
async fn run() {
let world = setup_world("my_world");
world.run().await;
}
Expand All @@ -82,4 +82,4 @@ fn main() {
universe.add_world(setup_world("my_other_world"));
universe.run_worlds().await;
}
```
```

0 comments on commit b0d0b64

Please sign in to comment.