fix typo and adjust comment
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
97d49fcf60
commit
af080bf04b
@ -86,8 +86,8 @@ impl<T, F: FnOnce() -> T> LazyCell<T, F> {
|
|||||||
// SAFETY:
|
// SAFETY:
|
||||||
// This invalidates any mutable references to the data. The resulting
|
// This invalidates any mutable references to the data. The resulting
|
||||||
// reference lives either until the end of the borrow of `this` (in the
|
// reference lives either until the end of the borrow of `this` (in the
|
||||||
// initialized case) or is invalidates in `really_init` (in the
|
// initialized case) or is invalidated in `really_init` (in the
|
||||||
// uninitialized case).
|
// uninitialized case; `really_init` will create and return a fresh reference).
|
||||||
let state = unsafe { &*this.state.get() };
|
let state = unsafe { &*this.state.get() };
|
||||||
match state {
|
match state {
|
||||||
State::Init(data) => data,
|
State::Init(data) => data,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user