diff --git a/arrow-buffer/src/buffer/immutable.rs b/arrow-buffer/src/buffer/immutable.rs index 5f35559c84e..fd145ce2306 100644 --- a/arrow-buffer/src/buffer/immutable.rs +++ b/arrow-buffer/src/buffer/immutable.rs @@ -236,7 +236,7 @@ impl Buffer { /// Returns a new [Buffer] that is a slice of this buffer starting at `offset`. /// - /// This function is `O(1)` and does not copy any data, and allows the + /// This function is `O(1)` and does not copy any data, allowing the /// same memory region to be shared between buffers. /// /// # Panics @@ -272,7 +272,7 @@ impl Buffer { /// Returns a new [Buffer] that is a slice of this buffer starting at `offset`, /// with `length` bytes. /// - /// This function is `O(1)` and does not copy any data and allows the same + /// This function is `O(1)` and does not copy any data, allowing the same /// memory region to be shared between buffers. /// /// # Panics @@ -454,7 +454,7 @@ impl From> for Buffer { } } -/// Convert from internal `Bytes`, not [`bytes::Bytes`] to `Buffer` +/// Convert from internal `Bytes` (not [`bytes::Bytes`]) to `Buffer` impl From for Buffer { #[inline] fn from(bytes: Bytes) -> Self { diff --git a/parquet/src/arrow/array_reader/byte_view_array.rs b/parquet/src/arrow/array_reader/byte_view_array.rs index 8d848982e65..92a8b0592d0 100644 --- a/parquet/src/arrow/array_reader/byte_view_array.rs +++ b/parquet/src/arrow/array_reader/byte_view_array.rs @@ -316,7 +316,7 @@ impl ByteViewArrayDecoderPlain { } pub fn read(&mut self, output: &mut ViewBuffer, len: usize) -> Result { - // Zero copy convert `bytes::Bytes` into `arrow_buffer:Buffer` + // Zero copy convert `bytes::Bytes` into `arrow_buffer::Buffer` let buf = arrow_buffer::Buffer::from(self.buf.clone()); let block_id = output.append_block(buf); @@ -548,7 +548,7 @@ impl ByteViewArrayDecoderDeltaLength { let src_lengths = &self.lengths[self.length_offset..self.length_offset + to_read]; - // Zero copy convert `bytes::Bytes` into `arrow_buffer:Buffer` + // Zero copy convert `bytes::Bytes` into `arrow_buffer::Buffer` let bytes = Buffer::from(self.data.clone()); let block_id = output.append_block(bytes);