Skip to content

Commit

Permalink
Merge pull request #623 from rust-lang/chore/docs-clarifications
Browse files Browse the repository at this point in the history
Clarify the actual set of functions that can race in _racy variants
  • Loading branch information
KodrAus authored Mar 30, 2024
2 parents 4961162 + 17b73a4 commit db19094
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 db19094

Please sign in to comment.