Skip to content

Commit cea803f

Browse files
committed
Fix typos
1 parent 0a11092 commit cea803f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

crates/polars-arrow/src/array/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! to a concrete struct based on [`PhysicalType`](crate::datatypes::PhysicalType) available from [`Array::dtype`].
1616
//! All immutable arrays are backed by [`Buffer`](crate::buffer::Buffer) and thus cloning and slicing them is `O(1)`.
1717
//!
18-
//! Most arrays contain a [`MutableArray`] counterpart that is neither clonable nor sliceable, but
18+
//! Most arrays contain a [`MutableArray`] counterpart that is neither cloneable nor sliceable, but
1919
//! can be operated in-place.
2020
use std::any::Any;
2121
use std::sync::Arc;

crates/polars-ops/src/chunked_array/list/sets.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ where
9494
set2.clear();
9595
set2.extend(b);
9696
}
97-
// We could speed this up, but implementing ourselves, but we need to have a clonable
97+
// We could speed this up, but implementing ourselves, but we need to have a cloneable
9898
// iterator as we need 2 passes
9999
set.extend(a);
100100
out.extend_buf(set.symmetric_difference(set2).copied())

crates/polars-parquet/src/parquet/encoding/delta_length_byte_array/encoder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::parquet::encoding::delta_bitpacked;
22

3-
/// Encodes a clonable iterator of `&[u8]` into `buffer`. This does not allocated on the heap.
3+
/// Encodes a cloneable iterator of `&[u8]` into `buffer`. This does not allocated on the heap.
44
/// # Implementation
55
/// This encoding is equivalent to call [`delta_bitpacked::encode`] on the lengths of the items
66
/// of the iterator followed by extending the buffer from each item of the iterator.

crates/polars-pipe/src/executors/sinks/group_by/primitive/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ where
277277
let s = s.to_physical_repr();
278278
let s = prepare_key(&s, chunk);
279279

280-
// todo! ammortize allocation
280+
// TODO: Amortize allocation.
281281
for phys_e in self.aggregation_columns.iter() {
282282
let s = phys_e.evaluate(chunk, &context.execution_state)?;
283283
let s = s.to_physical_repr();

crates/polars-pipe/src/executors/sinks/group_by/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl StringGroupbySink {
232232
let s = s.to_physical_repr();
233233
let s = prepare_key(&s, chunk);
234234

235-
// todo! ammortize allocation
235+
// TODO: Amortize allocation.
236236
for phys_e in self.aggregation_columns.iter() {
237237
let s = phys_e.evaluate(chunk, &context.execution_state)?;
238238
let s = s.to_physical_repr();

py-polars/tests/unit/io/test_scan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def data_file_glob(session_tmp_dir: Path, data_file_extension: str) -> _DataFile
149149
assert sum(row_counts) == 10000
150150

151151
# Make sure we pad file names with enough zeros to ensure correct
152-
# lexographical ordering.
152+
# lexicographical ordering.
153153
assert len(row_counts) < 100
154154

155155
# Make sure that some of our data frames consist of multiple chunks which

0 commit comments

Comments
 (0)