Skip to content

Commit

Permalink
fix reference in doctest to size_of which is not imported by default (#…
Browse files Browse the repository at this point in the history
…6286)

This corrects an issue with this doctest noticed on FreeBSD/amd64 with
rustc 1.77.0
  • Loading branch information
rtyler authored Aug 21, 2024
1 parent 56f6942 commit 2795b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow-data/src/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ fn build_extend_null_bits(array: &ArrayData, use_nulls: bool) -> ExtendNullBits
/// let arr1 = i32_array(&[1, 2, 3, 4, 5]);
/// let arr2 = i32_array(&[6, 7, 8, 9, 10]);
/// // Create a mutable array for copying values from arr1 and arr2, with a capacity for 6 elements
/// let capacity = 3 * size_of::<i32>();
/// let capacity = 3 * std::mem::size_of::<i32>();
/// let mut mutable = MutableArrayData::new(vec![&arr1, &arr2], false, 10);
/// // Copy the first 3 elements from arr1
/// mutable.extend(0, 0, 3);
Expand Down

0 comments on commit 2795b94

Please sign in to comment.