From 43e60ceb414c96b92860f4046cf25e6f425170ca Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 30 Nov 2020 14:13:21 +0100 Subject: [PATCH] file logger: remove test.log after test as well and a doc formatting fixup Signed-off-by: Wolfgang Bumiller --- src/tools/file_logger.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/file_logger.rs b/src/tools/file_logger.rs index 49c17d7e..556a70a0 100644 --- a/src/tools/file_logger.rs +++ b/src/tools/file_logger.rs @@ -20,6 +20,7 @@ use std::io::Write; /// }; /// let mut log = FileLogger::new("test.log", options).unwrap(); /// flog!(log, "A simple log: {}", "Hello!"); +/// # std::fs::remove_file("test.log"); /// ``` #[derive(Debug, Default)] @@ -51,7 +52,7 @@ pub struct FileLogger { options: FileLogOptions, } -/// Log messages to [FileLogger](tools/struct.FileLogger.html) +/// Log messages to [`FileLogger`](tools/struct.FileLogger.html) #[macro_export] macro_rules! flog { ($log:expr, $($arg:tt)*) => ({