viirya commented on code in PR #3529:
URL: https://github.com/apache/arrow-rs/pull/3529#discussion_r1070363609
##########
arrow-data/src/data.rs:
##########
@@ -375,24 +415,25 @@ impl ArrayData {
Ok(new_self)
}
- /// Returns a builder to construct a `ArrayData` instance.
+ /// Returns a builder to construct a [`ArrayData`] instance of the same
[`DataType`]
#[inline]
pub const fn builder(data_type: DataType) -> ArrayDataBuilder {
ArrayDataBuilder::new(data_type)
}
- /// Returns a reference to the data type of this array data
+ /// Returns a reference to the [`DataType`] of this [`ArrayData`]
#[inline]
pub const fn data_type(&self) -> &DataType {
&self.data_type
}
- /// Returns a slice of buffers for this array data
+ /// Returns a slice of the [`Buffer`]s that hold the data.
pub fn buffers(&self) -> &[Buffer] {
&self.buffers[..]
}
- /// Returns a slice of children data arrays
+ /// Returns a slice of children [`ArrayData`]. This will be non
+ /// empty for type susch as lists and structs.
Review Comment:
```suggestion
/// empty for type such as lists and structs.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]