From 0f4bdaa17ad689081cabca1a1e3c341befa29af6 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Mon, 25 Mar 2019 11:14:15 +0100 Subject: [PATCH] Address documentation nits --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 7db5dce51..42e579561 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1120,8 +1120,8 @@ pub fn set_boxed_logger(logger: Box) -> Result<(), SetLoggerError> { /// /// This method is available even when the `std` feature is disabled. However, /// it is currently unavailable on `thumbv6` targets, which lack support for -/// some atomic operations which are used by this function. However, even on -/// those targets, [`set_logger_racy`] is available. +/// some atomic operations which are used by this function. Even on those +/// targets, [`set_logger_racy`] will be available. /// /// # Errors /// @@ -1204,6 +1204,9 @@ where /// This can be upheld by (for example) making sure that **there are no other /// threads**, and (on embedded) that **interrupts are disabled**. /// +/// It is safe to use other logging functions while this function runs +/// (including all logging macros). +/// /// [`set_logger`]: fn.set_logger.html pub unsafe fn set_logger_racy(logger: &'static Log) -> Result<(), SetLoggerError> { match STATE.load(Ordering::SeqCst) {