From a3e53db0362db0c5c23f347a8a90db5ea956c8c8 Mon Sep 17 00:00:00 2001 From: kikkon Date: Sun, 31 Mar 2024 21:52:13 +0800 Subject: [PATCH] chore: cargo doc --- .../src/builder/generic_list_view_builder.rs | 14 +++++++------- arrow-buffer/src/buffer/size.rs | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arrow-array/src/builder/generic_list_view_builder.rs b/arrow-array/src/builder/generic_list_view_builder.rs index 5d5121c4c87f..25d961d25ed9 100644 --- a/arrow-array/src/builder/generic_list_view_builder.rs +++ b/arrow-array/src/builder/generic_list_view_builder.rs @@ -23,7 +23,7 @@ use arrow_schema::{Field, FieldRef}; use crate::builder::ArrayBuilder; use crate::{ArrayRef, GenericListViewArray, OffsetSizeTrait}; -/// Builder for [`GenericListArray`] +/// Builder for [`GenericListViewArray`] /// #[derive(Debug)] pub struct GenericListViewBuilder { @@ -44,13 +44,13 @@ impl Default for GenericListViewB } impl GenericListViewBuilder { - /// Creates a new [`GenericListBuilder`] from a given values array builder + /// Creates a new [`GenericListViewBuilder`] from a given values array builder pub fn new(values_builder: T) -> Self { let capacity = values_builder.len(); Self::with_capacity(values_builder, capacity) } - /// Creates a new [`GenericListBuilder`] from a given values array builder + /// Creates a new [`GenericListViewBuilder`] from a given values array builder /// `capacity` is the number of items to pre-allocate space for in this builder pub fn with_capacity(values_builder: T, capacity: usize) -> Self { let offsets_builder = BufferBuilder::::new(capacity); @@ -64,7 +64,7 @@ impl GenericListViewBuilder GenericListViewBuilder GenericListViewBuilder GenericListViewBuilder GenericListViewArray { let values = self.values_builder.finish_cloned(); let nulls = self.null_buffer_builder.finish_cloned(); diff --git a/arrow-buffer/src/buffer/size.rs b/arrow-buffer/src/buffer/size.rs index fdb75953cf73..02c100d1223f 100644 --- a/arrow-buffer/src/buffer/size.rs +++ b/arrow-buffer/src/buffer/size.rs @@ -81,7 +81,7 @@ impl SizeBuffer { Self(self.0.slice(offset, len.saturating_add(1))) } - /// Returns true if this [`OffsetBuffer`] is equal to `other`, using pointer comparisons + /// Returns true if this [`ScalarBuffer`] is equal to `other`, using pointer comparisons /// to determine buffer equality. This is cheaper than `PartialEq::eq` but may /// return false when the arrays are logically equal #[inline]