Skip to content

Commit 7cc80a7

Browse files
committed
chore: comment
1 parent 06eb73b commit 7cc80a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libs/@local/hashql/core/src/heap/scratch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use super::{AllocatorScope, BumpAllocator, allocator::Allocator, bump::ResetAllo
1111
///
1212
/// ```
1313
/// # #![feature(allocator_api)]
14-
/// # use hashql_core::heap::{Scratch, ResettableBumpAllocator};
14+
/// # use hashql_core::heap::{Scratch, ResetAllocator};
1515
/// let mut scratch = Scratch::new();
1616
/// let mut vec: Vec<u32, &Scratch> = Vec::new_in(&scratch);
1717
/// vec.push(42);

libs/@local/hashql/core/src/heap/transfer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub unsafe trait TransferInto<'alloc, A: Allocator> {
3434
fn try_transfer_into(&self, allocator: &'alloc A) -> Result<Self::Output, AllocError>;
3535
}
3636

37-
// SAFETY: Arena memory remains valid for 'alloc. Bumpalo handles layout/initialization.
37+
// SAFETY: Arena memory remains valid for 'alloc. bump_scope handles layout/initialization.
3838
unsafe impl<'alloc, T: Copy + 'alloc, A: BumpAllocator> TransferInto<'alloc, A> for [T] {
3939
type Output = &'alloc mut Self;
4040

@@ -49,7 +49,7 @@ unsafe impl<'alloc, T: Copy + 'alloc, A: BumpAllocator> TransferInto<'alloc, A>
4949
}
5050
}
5151

52-
// SAFETY: Arena memory remains valid for 'alloc. Bumpalo handles layout/initialization.
52+
// SAFETY: Arena memory remains valid for 'alloc. bump_scope handles layout/initialization.
5353
unsafe impl<'alloc, A: BumpAllocator> TransferInto<'alloc, A> for str {
5454
type Output = &'alloc mut Self;
5555

0 commit comments

Comments
 (0)