use file!() instead of README.md

master
rasul 5 years ago
parent 632d5dfcbe
commit 3619302f34

@ -14,8 +14,7 @@
/// use rude::try_log; /// use rude::try_log;
/// ///
/// fn main() -> RudeResult<()> { /// fn main() -> RudeResult<()> {
/// let path = "README.md"; /// let file = try_log!(File::open(file!()), "Unable to open {}", file!());
/// let readme = try_log!(File::open(path), "Unable to open {}", path);
/// Ok(()) /// Ok(())
/// } /// }
/// ``` /// ```
@ -49,7 +48,7 @@ macro_rules! try_log {
/// use rude::try_print; /// use rude::try_print;
/// ///
/// fn main() -> RudeResult<()> { /// 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(()) /// Ok(())
/// } /// }
/// ``` /// ```

Loading…
Cancel
Save