Skip to content

Commit

Permalink
clarify the actual set of functions that can race in _racy variants
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Mar 29, 2024
1 parent 4961162 commit 17b73a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1243,13 +1243,13 @@ pub fn set_max_level(level: LevelFilter) {
///
/// # Safety
///
/// This function is only safe to call when no other level setting function is
/// called while this function still executes.
/// This function is only safe to call when it cannot race with any other
/// calls to `set_max_level` or `set_max_level_racy`.
///
/// This can be upheld by (for example) making sure that **there are no other
/// threads**, and (on embedded) that **interrupts are disabled**.
///
/// Is is safe to use all other logging functions while this function runs
/// It is safe to use all other logging functions while this function runs
/// (including all logging macros).
///
/// [`set_max_level`]: fn.set_max_level.html
Expand Down Expand Up @@ -1403,8 +1403,8 @@ where
///
/// # Safety
///
/// This function is only safe to call when no other logger initialization
/// function is called while this function still executes.
/// This function is only safe to call when it cannot race with any other
/// calls to `set_logger` or `set_logger_racy`.
///
/// This can be upheld by (for example) making sure that **there are no other
/// threads**, and (on embedded) that **interrupts are disabled**.
Expand Down

0 comments on commit 17b73a4

Please sign in to comment.