From 303e2727c4cb6737598d3d61fc6cb804e1168208 Mon Sep 17 00:00:00 2001 From: Peter Krull Date: Wed, 5 Feb 2025 19:28:59 +0100 Subject: [PATCH] fix doc test errors --- common/src/sync/rpc.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/sync/rpc.rs b/common/src/sync/rpc.rs index d038e9f..c025cde 100644 --- a/common/src/sync/rpc.rs +++ b/common/src/sync/rpc.rs @@ -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, /// }