Skip to content

Commit 806f581

Browse files
authored
Fix typo in doc comment.
call_one_force -> call_once_force
1 parent 52b605c commit 806f581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sync/once.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ impl Once {
272272
/// result in an immediate panic. If `f` panics, the `Once` will remain
273273
/// in a poison state. If `f` does _not_ panic, the `Once` will no
274274
/// longer be in a poison state and all future calls to `call_once` or
275-
/// `call_one_force` will be no-ops.
275+
/// `call_once_force` will be no-ops.
276276
///
277277
/// The closure `f` is yielded a [`OnceState`] structure which can be used
278278
/// to query the poison status of the `Once`.

0 commit comments

Comments
 (0)