mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-09 13:04:09 +01:00
Fix doc test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user