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