Skip to content

Commit

Permalink
docs: ArrayDataBuilder build_unchecked doctest (apache#7139)
Browse files Browse the repository at this point in the history
  • Loading branch information
gstvg authored and friendlymatthew committed Feb 21, 2025
1 parent c19dbc5 commit 3a0871c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arrow-data/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,13 @@ impl ArrayDataBuilder {

/// Creates an array data, without any validation
///
/// Note: This is shorthand for `self.skip_validation(true).build().unwrap()`
/// Note: This is shorthand for
/// ```rust
/// # let mut builder = arrow_data::ArrayDataBuilder::new(arrow_schema::DataType::Null);
/// # let _ = unsafe {
/// builder.skip_validation(true).build().unwrap()
/// # };
/// ```
///
/// # Safety
///
Expand Down

0 comments on commit 3a0871c

Please sign in to comment.