This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 2795b9411 fix reference in doctest to size_of which is not imported by
default (#6286)
2795b9411 is described below
commit 2795b94119dcce47afa71526625b229745300695
Author: R. Tyler Croy <[email protected]>
AuthorDate: Wed Aug 21 13:18:25 2024 -0700
fix reference in doctest to size_of which is not imported by default (#6286)
This corrects an issue with this doctest noticed on FreeBSD/amd64 with
rustc 1.77.0
---
arrow-data/src/transform/mod.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arrow-data/src/transform/mod.rs b/arrow-data/src/transform/mod.rs
index c6d834aea..edc68f1a1 100644
--- a/arrow-data/src/transform/mod.rs
+++ b/arrow-data/src/transform/mod.rs
@@ -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);