From 350f3ba1aa44ab87be7e3a6d3ab7971629f43fe2 Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Fri, 11 Jul 2025 10:50:06 +0200 Subject: [PATCH] Add standard `Errors` section with error condition documentation Signed-off-by: Wiktor Kwapisiewicz --- src/loggers/termlog.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/loggers/termlog.rs b/src/loggers/termlog.rs index 460c36e6..72c84840 100644 --- a/src/loggers/termlog.rs +++ b/src/loggers/termlog.rs @@ -48,7 +48,10 @@ impl TermLogger { /// init function. Globally initializes the TermLogger as the one and only used log facility. /// /// Takes the desired `Level` and `Config` as arguments. They cannot be changed later on. - /// Fails if another Logger was already initialized + /// + /// # Errors + /// + /// An error is returned if a logger has already been set. /// /// # Examples /// ```