Skip to content

Commit

Permalink
refactor(allocator): correct code comment (#4904)
Browse files Browse the repository at this point in the history
Correct code comment in `Box::unbox`.
  • Loading branch information
overlookmotel committed Aug 14, 2024
1 parent 452187a commit a6967b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_allocator/src/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<'alloc, T> Box<'alloc, T> {
// This pointer read is safe because the reference `self.0` is
// guaranteed to be unique--not just now, but we're guaranteed it's not
// borrowed from some other reference. This in turn is because we never
// construct an alloc::Box with a borrowed reference, only with a fresh
// construct a `Box` with a borrowed reference, only with a fresh
// one just allocated from a Bump.
unsafe { ptr::read(self.0.as_ptr()) }
}
Expand Down

0 comments on commit a6967b3

Please sign in to comment.