Skip to content

Commit

Permalink
fix doc test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkrull committed Feb 5, 2025
1 parent 10c6f62 commit 303e272
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/src/sync/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ use super::channel::MpscChannel;
///
/// # Usage
/// ```rust
/// use common::{rpc_message, sync::rpc::Procedure};
/// rpc_message!{
/// // Define the procedure
/// Msg: Request => Response,
/// Msg: Request -> Response,
/// // ^ ^ ^
/// // | | | This is the 'generic' request type
/// // | | The request type is what is received, and holds the responder handle
/// // | This type marks the protocol, by relating the request and response types
///
/// // Define individual messages
/// async GetTime {} -> Instant,
/// async GetTime {} -> u64,
/// async SetTarget { t: f32 } -> bool,
/// async GetTarget {} -> f32,
/// }
Expand Down

0 comments on commit 303e272

Please sign in to comment.