etseidl commented on code in PR #8853:
URL: https://github.com/apache/arrow-rs/pull/8853#discussion_r2532056761


##########
arrow-buffer/src/buffer/immutable.rs:
##########
@@ -364,6 +364,23 @@ impl Buffer {
     /// Returns `Err` if this is shared or its allocation is from an external 
source or
     /// it is not allocated with alignment [`ALIGNMENT`]
     ///
+    /// # Example: Creating a [`MutableBuffer`] from a [`Buffer`]
+    /// ```
+    /// # use arrow_buffer::buffer::{Buffer, MutableBuffer};
+    /// let buffer: Buffer = Buffer::from(&[1u8, 2, 3, 4][..]);

Review Comment:
   Can this be
   
   ```suggestion
       /// let buffer = Buffer::from(&[1u8, 2, 3, 4][..]);
   ```
   ? I noticed you removed the explicit typing in the earlier PR.



-- 
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]

Reply via email to