From 10d7a873826a1749b3d7f1ea3aea0efdf57c8c88 Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Wed, 27 Jan 2016 21:48:20 -0800 Subject: [PATCH] Fix doc test --- tarpc/src/macros.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tarpc/src/macros.rs b/tarpc/src/macros.rs index a9246a2..7038a8d 100644 --- a/tarpc/src/macros.rs +++ b/tarpc/src/macros.rs @@ -114,8 +114,17 @@ macro_rules! request_variant { /// /// Rpc methods are specified, mirroring trait syntax: /// -/// #[attr] -/// rpc fn_name(arg1: Ty1, ..., argN, TyN) -> ReturnTy; +/// ``` +/// # #![feature(custom_derive, plugin)] +/// # #![plugin(serde_macros)] +/// # #[macro_use] extern crate tarpc; +/// # extern crate serde; +/// # fn main() {} +/// # service! { +/// #[doc="Say hello"] +/// rpc hello(name: String) -> String; +/// # } +/// ``` /// /// Attributes can be attached to each rpc. These attributes /// will then be attached to the generated `Service` trait's