diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-24 12:17:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-24 12:17:12 +0200 |
| commit | e2e3aacc238abe789170a64467b96fe2d7e41174 (patch) | |
| tree | 67e940e61ef1f5f5391ebd71b4a96231c12eef99 | |
| parent | 8692c455958d2cd70e1a20c765ecde143dbf453c (diff) | |
| parent | 806f5815d4528d6a8a4eb5df58151c587a09733c (diff) | |
| download | rust-e2e3aacc238abe789170a64467b96fe2d7e41174.tar.gz rust-e2e3aacc238abe789170a64467b96fe2d7e41174.zip | |
Rollup merge of #72528 - emosenkis:patch-1, r=dtolnay
Fix typo in doc comment. call_one_force -> call_on**c**e_force
| -rw-r--r-- | src/libstd/sync/once.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs index a3ee14e85d2..7dc822db3d0 100644 --- a/src/libstd/sync/once.rs +++ b/src/libstd/sync/once.rs @@ -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`. |
