Skip to content

Commit

Permalink
Rollup merge of rust-lang#72528 - emosenkis:patch-1, r=dtolnay
Browse files Browse the repository at this point in the history
Fix typo in doc comment.

call_one_force -> call_on**c**e_force
  • Loading branch information
RalfJung authored May 24, 2020
2 parents 8692c45 + 806f581 commit e2e3aac
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 e2e3aac

Please sign in to comment.