Skip to content

Commit

Permalink
Address documentation nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Mar 25, 2019
1 parent 3d9bf60 commit 0f4bdaa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,8 @@ pub fn set_boxed_logger(logger: Box<Log>) -> 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
///
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0f4bdaa

Please sign in to comment.