Skip to content

Commit 4ca13e6

Browse files
authored
sync: fix typos in OnceCell docs (#7047)
1 parent b54b9d4 commit 4ca13e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tokio/src/sync/once_cell.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::ptr;
99
use std::sync::atomic::{AtomicBool, Ordering};
1010

1111
// This file contains an implementation of an OnceCell. The principle
12-
// behind the safety the of the cell is that any thread with an `&OnceCell` may
12+
// behind the safety of the cell is that any thread with an `&OnceCell` may
1313
// access the `value` field according the following rules:
1414
//
1515
// 1. When `value_set` is false, the `value` field may be modified by the
@@ -179,8 +179,8 @@ impl<T> OnceCell<T> {
179179
///
180180
/// [`OnceCell::new`]: crate::sync::OnceCell::new
181181
// Once https://github.com/rust-lang/rust/issues/73255 lands
182-
// and tokio MSRV is bumped to the rustc version with it stablised,
183-
// we can made this function available in const context,
182+
// and tokio MSRV is bumped to the rustc version with it stabilised,
183+
// we can make this function available in const context,
184184
// by creating `Semaphore::const_new_closed`.
185185
pub fn new_with(value: Option<T>) -> Self {
186186
if let Some(v) = value {

0 commit comments

Comments
 (0)