Skip to content

Commit

Permalink
Update crates/jstz_engine/src/gc/ptr.rs
Browse files Browse the repository at this point in the history
Co-authored-by: zcabter <[email protected]>
  • Loading branch information
johnyob and zcabter authored Dec 19, 2024
1 parent 94ddd2c commit 6a9c971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/jstz_engine/src/gc/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl<T: WriteBarrieredPtr> GcPtr<T> {
/// points to a valid `js::gc::Cell`.
pub unsafe fn get(&self) -> T {
// Note: read_unaligned is used since SpiderMonkey doesn't
// guarantee the expected align of Rust pointers.
// guarantee the expected alignment of Rust pointers.
self.inner_ptr.get().read_unaligned()
}

Expand Down

0 comments on commit 6a9c971

Please sign in to comment.