This is an automated email from the ASF dual-hosted git repository.
Jefffrey pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/main by this push:
new 27a6a40879 chore: fix missing code block endings (#10918)
27a6a40879 is described below
commit 27a6a408796a4d855a0d997a86682401f383d352
Author: Jeffrey Vo <[email protected]>
AuthorDate: Tue Sep 1 10:34:00 2026 +0900
chore: fix missing code block endings (#10918)
its messing with my editor highlighting
---
arrow-arith/src/boolean.rs | 1 +
arrow-array/src/builder/primitive_dictionary_builder.rs | 1 +
arrow-array/src/scalar.rs | 1 +
arrow-buffer/src/buffer/boolean.rs | 1 +
parquet-variant/src/path.rs | 1 +
parquet/src/bin/parquet-index.rs | 1 +
6 files changed, 6 insertions(+)
diff --git a/arrow-arith/src/boolean.rs b/arrow-arith/src/boolean.rs
index 020ba39590..ed02b16535 100644
--- a/arrow-arith/src/boolean.rs
+++ b/arrow-arith/src/boolean.rs
@@ -288,6 +288,7 @@ pub fn or(left: &BooleanArray, right: &BooleanArray) ->
Result<BooleanArray, Arr
/// assert_eq!(andn_ab, BooleanArray::from(vec![Some(false), Some(false),
None]));
/// // It's equal to and(left, not(right))
/// assert_eq!(andn_ab, and(&a, ¬(&b).unwrap()).unwrap());
+/// ```
pub fn and_not(left: &BooleanArray, right: &BooleanArray) ->
Result<BooleanArray, ArrowError> {
binary_boolean_kernel(left, right, |a, b| {
let buffer = buffer_bin_and_not(a.inner(), a.offset(), b.inner(),
b.offset(), a.len());
diff --git a/arrow-array/src/builder/primitive_dictionary_builder.rs
b/arrow-array/src/builder/primitive_dictionary_builder.rs
index 4911bee9e3..90b0c14a75 100644
--- a/arrow-array/src/builder/primitive_dictionary_builder.rs
+++ b/arrow-array/src/builder/primitive_dictionary_builder.rs
@@ -197,6 +197,7 @@ where
/// let keys = dictionary_array.keys();
///
/// assert_eq!(keys, &UInt16Array::from_iter(0..256));
+ /// ```
pub fn try_new_from_builder<K2>(
mut source: PrimitiveDictionaryBuilder<K2, V>,
) -> Result<Self, ArrowError>
diff --git a/arrow-array/src/scalar.rs b/arrow-array/src/scalar.rs
index 4bbf668c4a..c12e089bc4 100644
--- a/arrow-array/src/scalar.rs
+++ b/arrow-array/src/scalar.rs
@@ -75,6 +75,7 @@ use crate::Array;
/// let r = eq(&a, &b).unwrap();
/// let values: Vec<_> = r.values().iter().collect();
/// assert_eq!(values, &[true, false, false, false, false]);
+/// ```
pub trait Datum {
/// Returns the value for this [`Datum`] and a boolean indicating if the
value is scalar
fn get(&self) -> (&dyn Array, bool);
diff --git a/arrow-buffer/src/buffer/boolean.rs
b/arrow-buffer/src/buffer/boolean.rs
index 494eda819b..677a2da55b 100644
--- a/arrow-buffer/src/buffer/boolean.rs
+++ b/arrow-buffer/src/buffer/boolean.rs
@@ -182,6 +182,7 @@ impl BooleanBuffer {
/// }
/// // However, underlying buffer has (ignored) bits set outside the
requested range
/// assert_eq!(result.values(), &[0b11001100u8, 0b10111010, 0, 0, 0, 0, 0,
0]);
+ /// ```
pub fn from_bits(src: impl AsRef<[u8]>, offset_in_bits: usize,
len_in_bits: usize) -> Self {
Self::from_bitwise_unary_op(src, offset_in_bits, len_in_bits, |a| a)
}
diff --git a/parquet-variant/src/path.rs b/parquet-variant/src/path.rs
index 4464daebe8..cd41c1cdd9 100644
--- a/parquet-variant/src/path.rs
+++ b/parquet-variant/src/path.rs
@@ -85,6 +85,7 @@ use std::{borrow::Cow, ops::Deref};
/// VariantPathElement::index(2),
/// VariantPathElement::field("3")]);
/// assert_eq!(path, expected)
+/// ```
#[derive(Debug, Clone, PartialEq, Default)]
pub struct VariantPath<'a>(Vec<VariantPathElement<'a>>);
diff --git a/parquet/src/bin/parquet-index.rs b/parquet/src/bin/parquet-index.rs
index 72401aa119..412317a783 100644
--- a/parquet/src/bin/parquet-index.rs
+++ b/parquet/src/bin/parquet-index.rs
@@ -31,6 +31,7 @@
//! The binary can also be built from the source code and run as follows:
//! ```
//! cargo run --features=cli --bin parquet-index XYZ.parquet COLUMN_PATH
+//! ```
//!
//! [page index]:
https://github.com/apache/parquet-format/blob/master/PageIndex.md