Skip to content

Commit

Permalink
(docs) use run! instead of await in Bastion docs (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
creativcoder authored Jul 29, 2020
1 parent 09d28de commit 7a5826b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bastion/src/bastion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ distributed_api! {
/// let answer: Answer = child.ask_anonymously("A message containing data.").expect("Couldn't send the message.");
/// # async {
/// // ...until the child eventually answers back...
/// let answer: Result<SignedMessage, ()> = answer.await;
/// let answer: Result<SignedMessage, ()> = run!(answer);
/// # };
///
/// // ...and then even stop or kill it...
Expand Down

0 comments on commit 7a5826b

Please sign in to comment.