Skip to content

Commit

Permalink
avoid linking to private docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jan 4, 2025
1 parent cae4a7c commit 247ce3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arrow-buffer/src/buffer/immutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ unsafe impl Send for Buffer where Bytes: Send {}
unsafe impl Sync for Buffer where Bytes: Sync {}

impl Buffer {
/// Create a new Buffer from a (internal) [`Bytes`].
/// Create a new Buffer from a (internal) `Bytes`
///
/// NOTE despite the same name, [`Bytes`] is an internal struct in arrow-rs
/// NOTE despite the same name, `Bytes` is an internal struct in arrow-rs
/// and is different than [`bytes::Bytes`].
///
/// See examples on [`Buffer`] for ways to create a buffer from a [`bytes::Bytes`].
Expand Down Expand Up @@ -460,14 +460,14 @@ impl<T: ArrowNativeType> From<ScalarBuffer<T>> for Buffer {
}
}

/// Convert from internal [`Bytes`], not [`bytes::Bytes`] to `Buffer`
/// Convert from internal `Bytes`, not [`bytes::Bytes`] to `Buffer`
impl From<Bytes> for Buffer {
fn from(bytes: Bytes) -> Self {
Self::from_bytes(bytes)
}
}

/// Convert from [`bytes::Bytes`], not internal [`Bytes`] to `Buffer`
/// Convert from [`bytes::Bytes`], not internal `Bytes` to `Buffer`
impl From<bytes::Bytes> for Buffer {
fn from(bytes: bytes::Bytes) -> Self {
let bytes: Bytes = bytes.into();
Expand Down

0 comments on commit 247ce3f

Please sign in to comment.