From 1ef3d1745d2fa7db4f910f953cc24d4534f01c0a Mon Sep 17 00:00:00 2001 From: Frank Murphy Date: Thu, 4 Aug 2022 18:40:52 -0400 Subject: [PATCH] Fix some doc links/typos --- src/array/binary/mod.rs | 4 ++-- src/array/fixed_size_list/mod.rs | 5 +++-- src/array/growable/mod.rs | 3 ++- src/array/list/mod.rs | 5 +++-- src/array/list/mutable.rs | 2 +- src/array/mod.rs | 2 +- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/array/binary/mod.rs b/src/array/binary/mod.rs index af06d19501c..b1efa2f6f21 100644 --- a/src/array/binary/mod.rs +++ b/src/array/binary/mod.rs @@ -157,13 +157,13 @@ impl BinaryArray { &self.data_type } - /// Returns the values of this [`Utf8Array`]. + /// Returns the values of this [`BinaryArray`]. #[inline] pub fn values(&self) -> &Buffer { &self.values } - /// Returns the offsets of this [`Utf8Array`]. + /// Returns the offsets of this [`BinaryArray`]. #[inline] pub fn offsets(&self) -> &Buffer { &self.offsets diff --git a/src/array/fixed_size_list/mod.rs b/src/array/fixed_size_list/mod.rs index d61a64c2589..dac5f19c70a 100644 --- a/src/array/fixed_size_list/mod.rs +++ b/src/array/fixed_size_list/mod.rs @@ -3,6 +3,7 @@ use crate::{ datatypes::{DataType, Field}, error::Error, }; +use std::sync::Arc; use super::{new_empty_array, new_null_array, Array}; @@ -118,8 +119,8 @@ impl FixedSizeListArray { } /// Boxes self into a [`Arc`]. - pub fn arced(self) -> std::sync::Arc { - std::sync::Arc::new(self) + pub fn arced(self) -> Arc { + Arc::new(self) } } diff --git a/src/array/growable/mod.rs b/src/array/growable/mod.rs index 398c4297317..eb79f7fed97 100644 --- a/src/array/growable/mod.rs +++ b/src/array/growable/mod.rs @@ -3,6 +3,7 @@ use crate::array::*; use crate::datatypes::*; +use std::sync::Arc; mod binary; pub use binary::GrowableBinary; @@ -44,7 +45,7 @@ pub trait Growable<'a> { /// Converts this [`Growable`] to an [`Arc`], thereby finishing the mutation. /// Self will be empty after such operation. - fn as_arc(&mut self) -> std::sync::Arc { + fn as_arc(&mut self) -> Arc { self.as_box().into() } diff --git a/src/array/list/mod.rs b/src/array/list/mod.rs index 13f781f680f..819f6b1dd20 100644 --- a/src/array/list/mod.rs +++ b/src/array/list/mod.rs @@ -4,6 +4,7 @@ use crate::{ datatypes::{DataType, Field}, error::Error, }; +use std::sync::Arc; use super::{ new_empty_array, @@ -126,8 +127,8 @@ impl ListArray { } /// Boxes self into a [`Arc`]. - pub fn arced(self) -> std::sync::Arc { - std::sync::Arc::new(self) + pub fn arced(self) -> Arc { + Arc::new(self) } } diff --git a/src/array/list/mutable.rs b/src/array/list/mutable.rs index 8d0dc3b05e8..71283104fbc 100644 --- a/src/array/list/mutable.rs +++ b/src/array/list/mutable.rs @@ -157,7 +157,7 @@ impl MutableListArray { &mut self.values } - /// The offseta + /// The offsets pub fn offsets(&self) -> &Vec { &self.offsets } diff --git a/src/array/mod.rs b/src/array/mod.rs index 8010b5cf920..2a2f4d0e9b8 100644 --- a/src/array/mod.rs +++ b/src/array/mod.rs @@ -132,7 +132,7 @@ pub trait MutableArray: std::fmt::Debug + Send + Sync { /// The optional validity of the array. fn validity(&self) -> Option<&MutableBitmap>; - /// Convert itself to an (immutable) ['Array']. + /// Convert itself to an (immutable) [`Array`]. fn as_box(&mut self) -> Box; /// Convert itself to an (immutable) atomically reference counted [`Array`].