Skip to content

Commit

Permalink
docs: Fix minor rogue apostrophes (#18865)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumiller authored Sep 23, 2024
1 parent 48c1262 commit d27fcb3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/polars-core/src/chunked_array/arithmetic/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Implementations of arithmetic operations on ChunkedArray's.
//! Implementations of arithmetic operations on ChunkedArrays.
#[cfg(feature = "dtype-decimal")]
mod decimal;
mod numeric;
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-core/src/chunked_array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub type ChunkLenIter<'a> = std::iter::Map<std::slice::Iter<'a, ArrayRef>, fn(&A
/// }
/// ```
///
/// ## Conversion between Series and ChunkedArray's
/// ## Conversion between Series and ChunkedArrays
/// Conversion from a [`Series`] to a [`ChunkedArray`] is effortless.
///
/// ```rust
Expand Down
4 changes: 2 additions & 2 deletions crates/polars-core/src/series/arithmetic/borrowed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn broadcast_array(lhs: &ArrayChunked, rhs: &Series) -> PolarsResult<(ArrayChunk
},
(a, b) if a == b => (lhs.clone(), rhs.clone()),
_ => {
polars_bail!(InvalidOperation: "can only do arithmetic of array's of the same type and shape; got {} and {}", lhs.dtype(), rhs.dtype())
polars_bail!(InvalidOperation: "can only do arithmetic of arrays of the same type and shape; got {} and {}", lhs.dtype(), rhs.dtype())
},
};
Ok(out)
Expand All @@ -165,7 +165,7 @@ impl ArrayChunked {
let r_leaf_array = if rhs.dtype().is_numeric() && rhs.len() == 1 {
rhs.clone()
} else {
polars_ensure!(lhs.dtype() == rhs.dtype(), InvalidOperation: "can only do arithmetic of array's of the same type and shape; got {} and {}", self.dtype(), rhs.dtype());
polars_ensure!(lhs.dtype() == rhs.dtype(), InvalidOperation: "can only do arithmetic of arrays of the same type and shape; got {} and {}", self.dtype(), rhs.dtype());
rhs.get_leaf_array()
};

Expand Down
2 changes: 1 addition & 1 deletion crates/polars-core/src/series/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ use crate::POOL;
/// See all the comparison operators in the [CmpOps trait](crate::chunked_array::ops::ChunkCompare)
///
/// ## Iterators
/// The Series variants contain differently typed [ChunkedArray's](crate::chunked_array::ChunkedArray).
/// The Series variants contain differently typed [ChunkedArray](crate::chunked_array::ChunkedArray)s.
/// These structs can be turned into iterators, making it possible to use any function/ closure you want
/// on a Series.
///
Expand Down
6 changes: 3 additions & 3 deletions crates/polars-core/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ macro_rules! match_dtype_to_logical_apply_macro {
}};
}

/// Apply a macro on the Downcasted ChunkedArray's
/// Apply a macro on the Downcasted ChunkedArrays
#[macro_export]
macro_rules! match_arrow_dtype_apply_macro_ca {
($self:expr, $macro:ident, $macro_string:ident, $macro_bool:ident $(, $opt_args:expr)*) => {{
Expand Down Expand Up @@ -537,7 +537,7 @@ macro_rules! with_match_physical_integer_polars_type {(
}
})}

/// Apply a macro on the Downcasted ChunkedArray's of DataTypes that are logical numerics.
/// Apply a macro on the Downcasted ChunkedArrays of DataTypes that are logical numerics.
/// So no logical.
#[macro_export]
macro_rules! downcast_as_macro_arg_physical {
Expand All @@ -562,7 +562,7 @@ macro_rules! downcast_as_macro_arg_physical {
}};
}

/// Apply a macro on the Downcasted ChunkedArray's of DataTypes that are logical numerics.
/// Apply a macro on the Downcasted ChunkedArrays of DataTypes that are logical numerics.
/// So no logical.
#[macro_export]
macro_rules! downcast_as_macro_arg_physical_mut {
Expand Down

0 comments on commit d27fcb3

Please sign in to comment.