Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwener committed Oct 31, 2022
1 parent 6b3766d commit b8d3e88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arrow-buffer/src/alloc/alignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// NOTE: Below code is written for spatial/temporal prefetcher optimizations. Memory allocation
// should align well with usage pattern of cache access and block sizes on layers of storage levels from
// registers to non-volatile memory. These alignments are all cache aware alignments incorporated
// from [cuneiform](https://crates.io/crates/cuneiform) crate. This approach mimicks Intel TBB's
// from [cuneiform](https://crates.io/crates/cuneiform) crate. This approach mimics Intel TBB's
// cache_aligned_allocator which exploits cache locality and minimizes prefetch signals
// resulting in less round trip time between the layers of storage.
// For further info: https://software.intel.com/en-us/node/506094
Expand Down
4 changes: 2 additions & 2 deletions arrow-data/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ impl ArrayData {
) -> Result<&[T], ArrowError> {
let buffer = &self.buffers[idx];

let required_len = (len + self.offset) * std::mem::size_of::<T>();
let required_len = (len + self.offset) * mem::size_of::<T>();

if buffer.len() < required_len {
return Err(ArrowError::InvalidArgumentError(format!(
Expand Down Expand Up @@ -1170,7 +1170,7 @@ impl ArrayData {

// This should have been checked as part of `validate()` prior
// to calling `validate_full()` but double check to be sure
assert!(buffer.len() / std::mem::size_of::<T>() >= required_len);
assert!(buffer.len() / mem::size_of::<T>() >= required_len);

// Justification: buffer size was validated above
let indexes: &[T] =
Expand Down
2 changes: 1 addition & 1 deletion arrow-flight/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let proto_path = Path::new("../format/FlightSql.proto");

tonic_build::configure()
// protoc in unbuntu builder needs this option
// protoc in ubuntu builder needs this option
.protoc_arg("--experimental_allow_proto3_optional")
.out_dir("src/sql")
.compile(&[proto_path], &[proto_dir])?;
Expand Down

0 comments on commit b8d3e88

Please sign in to comment.