use file!() instead of README.md

master
rasul 5 years ago
parent 632d5dfcbe
commit 3619302f34

@ -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(())
/// }
/// ```

Loading…
Cancel
Save