Skip to content

Commit

Permalink
Fix typo in doc comment.
Browse files Browse the repository at this point in the history
call_one_force -> call_once_force
  • Loading branch information
emosenkis authored May 24, 2020
1 parent 52b605c commit 806f581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sync/once.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ impl Once {
/// result in an immediate panic. If `f` panics, the `Once` will remain
/// in a poison state. If `f` does _not_ panic, the `Once` will no
/// longer be in a poison state and all future calls to `call_once` or
/// `call_one_force` will be no-ops.
/// `call_once_force` will be no-ops.
///
/// The closure `f` is yielded a [`OnceState`] structure which can be used
/// to query the poison status of the `Once`.
Expand Down

0 comments on commit 806f581

Please sign in to comment.