Skip to content

Commit 63258a2

Browse files
committed
comment
Signed-off-by: Alexander Droste <[email protected]>
1 parent 5c3322a commit 63258a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vortex-compute/src/expand/buffer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ fn expand_copy<T: Copy>(src: &[T], mask_values: &MaskValues) -> Buffer<T> {
138138

139139
let mut target_buf = BufferMut::<T>::with_capacity(mask_len);
140140

141-
// SAFETY: Preallocate full target capacity.
141+
// SAFETY: Sufficient capacity has been reserved.
142142
unsafe { target_buf.set_len(mask_len) };
143143

144144
let buf_slice = target_buf.as_mut_slice();
145145

146-
// Pick the first value as a default value. The source buffer is not empty.
146+
// Pick the first value as a default value.
147147
let pseudo_default_value = src[0];
148148

149149
let src_len = src.len();

0 commit comments

Comments
 (0)