From 3619302f34136028159dd1ce20604d826dc81fb9 Mon Sep 17 00:00:00 2001 From: rasul Date: Sun, 5 Apr 2020 12:53:28 -0500 Subject: [PATCH] use file!() instead of README.md --- src/macros.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index 875efac..cd3ccf0 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -14,8 +14,7 @@ /// use rude::try_log; /// /// fn main() -> RudeResult<()> { -/// let path = "README.md"; -/// let readme = try_log!(File::open(path), "Unable to open {}", path); +/// let file = try_log!(File::open(file!()), "Unable to open {}", file!()); /// Ok(()) /// } /// ``` @@ -49,7 +48,7 @@ macro_rules! try_log { /// use rude::try_print; /// /// fn main() -> RudeResult<()> { -/// let readme = try_print!(File::open(file!()), "Unable to open {}", file!()); +/// let file = try_print!(File::open(file!()), "Unable to open {}", file!()); /// Ok(()) /// } /// ```