Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Fix some doc links/typos
Browse files Browse the repository at this point in the history
  • Loading branch information
AnIrishDuck committed Aug 4, 2022
1 parent 061d6ba commit 1ef3d17
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/array/binary/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ impl<O: Offset> BinaryArray<O> {
&self.data_type
}

/// Returns the values of this [`Utf8Array`].
/// Returns the values of this [`BinaryArray`].
#[inline]
pub fn values(&self) -> &Buffer<u8> {
&self.values
}

/// Returns the offsets of this [`Utf8Array`].
/// Returns the offsets of this [`BinaryArray`].
#[inline]
pub fn offsets(&self) -> &Buffer<O> {
&self.offsets
Expand Down
5 changes: 3 additions & 2 deletions src/array/fixed_size_list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::{
datatypes::{DataType, Field},
error::Error,
};
use std::sync::Arc;

use super::{new_empty_array, new_null_array, Array};

Expand Down Expand Up @@ -118,8 +119,8 @@ impl FixedSizeListArray {
}

/// Boxes self into a [`Arc<dyn Array>`].
pub fn arced(self) -> std::sync::Arc<dyn Array> {
std::sync::Arc::new(self)
pub fn arced(self) -> Arc<dyn Array> {
Arc::new(self)
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/array/growable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use crate::array::*;
use crate::datatypes::*;
use std::sync::Arc;

mod binary;
pub use binary::GrowableBinary;
Expand Down Expand Up @@ -44,7 +45,7 @@ pub trait Growable<'a> {

/// Converts this [`Growable`] to an [`Arc<dyn Array>`], thereby finishing the mutation.
/// Self will be empty after such operation.
fn as_arc(&mut self) -> std::sync::Arc<dyn Array> {
fn as_arc(&mut self) -> Arc<dyn Array> {
self.as_box().into()
}

Expand Down
5 changes: 3 additions & 2 deletions src/array/list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use crate::{
datatypes::{DataType, Field},
error::Error,
};
use std::sync::Arc;

use super::{
new_empty_array,
Expand Down Expand Up @@ -126,8 +127,8 @@ impl<O: Offset> ListArray<O> {
}

/// Boxes self into a [`Arc<dyn Array>`].
pub fn arced(self) -> std::sync::Arc<dyn Array> {
std::sync::Arc::new(self)
pub fn arced(self) -> Arc<dyn Array> {
Arc::new(self)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/array/list/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl<O: Offset, M: MutableArray> MutableListArray<O, M> {
&mut self.values
}

/// The offseta
/// The offsets
pub fn offsets(&self) -> &Vec<O> {
&self.offsets
}
Expand Down
2 changes: 1 addition & 1 deletion src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn Array>;

/// Convert itself to an (immutable) atomically reference counted [`Array`].
Expand Down

0 comments on commit 1ef3d17

Please sign in to comment.