Skip to content

Commit

Permalink
fix typo and adjust comment
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <[email protected]>
  • Loading branch information
joboet and RalfJung committed Mar 30, 2023
1 parent 97d49fc commit af080bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/cell/lazy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ impl<T, F: FnOnce() -> T> LazyCell<T, F> {
// SAFETY:
// This invalidates any mutable references to the data. The resulting
// reference lives either until the end of the borrow of `this` (in the
// initialized case) or is invalidates in `really_init` (in the
// uninitialized case).
// initialized case) or is invalidated in `really_init` (in the
// uninitialized case; `really_init` will create and return a fresh reference).
let state = unsafe { &*this.state.get() };
match state {
State::Init(data) => data,
Expand Down

0 comments on commit af080bf

Please sign in to comment.