Skip to content

Commit 4dc3dae

Browse files
committed
reentrance is prevented by &mut self
Signed-off-by: tison <wander4096@gmail.com>
1 parent 1419aef commit 4dc3dae

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

library/core/src/cell/once.rs

-3
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ impl<T> OnceCell<T> {
172172
/// If `f` panics, the panic is propagated to the caller, and the cell
173173
/// remains uninitialized.
174174
///
175-
/// It is an error to reentrantly initialize the cell from `f`. Doing
176-
/// so results in a panic.
177-
///
178175
/// # Examples
179176
///
180177
/// ```

0 commit comments

Comments
 (0)