From aa9c13444d4bb52f8bb21deadce19195320c8508 Mon Sep 17 00:00:00 2001 From: rasul Date: Sun, 5 Apr 2020 13:15:16 -0500 Subject: [PATCH] don't use main() --- src/macros.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index e7b6f3d..d87a707 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -79,14 +79,16 @@ macro_rules! try_print { /// ``` /// use std::fs::File; /// use mio::Token; -/// use rude::result::RudeResult; +/// use rude::queue::SendQueue; /// use rude::try_send_error; /// -/// fn main() -> RudeResult<()> { +/// fn check_file() -> SendQueue { /// let token = Token(12); /// let file = try_send_error!(token, File::open(file!())); -/// Ok(()) +/// SendQueue::ok(token) /// } +/// +/// # assert_eq!(check_file().0[0].1, SendQueue::ok(Token(12)).0[0].1); /// ``` #[macro_export] macro_rules! try_send_error {