Skip to content

Commit 38d6e69

Browse files
authored
docs: ArrayDataBuilder build_unchecked doctest (#7139)
1 parent 2375c4f commit 38d6e69

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

arrow-data/src/data.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,13 @@ impl ArrayDataBuilder {
19291929

19301930
/// Creates an array data, without any validation
19311931
///
1932-
/// Note: This is shorthand for `self.skip_validation(true).build().unwrap()`
1932+
/// Note: This is shorthand for
1933+
/// ```rust
1934+
/// # let mut builder = arrow_data::ArrayDataBuilder::new(arrow_schema::DataType::Null);
1935+
/// # let _ = unsafe {
1936+
/// builder.skip_validation(true).build().unwrap()
1937+
/// # };
1938+
/// ```
19331939
///
19341940
/// # Safety
19351941
///

0 commit comments

Comments
 (0)