From 471a0e33444565821285fd85854a30bdb7981c54 Mon Sep 17 00:00:00 2001 From: Ariel Miculas Date: Thu, 21 May 2026 10:29:15 +0300 Subject: [PATCH] fix: indentation for markdown block comments in docstrings There must be some issue in vim's syntax highlighting, possibly in https://github.com/rust-lang/rust.vim, but these minor inconsistencies break the sytax highlighting. --- datafusion/datasource/src/file_scan_config/sort_pushdown.rs | 2 +- datafusion/doc/src/lib.rs | 2 +- datafusion/expr/src/expr.rs | 6 +++--- datafusion/physical-plan/src/aggregates/row_hash.rs | 2 +- datafusion/physical-plan/src/display.rs | 2 +- datafusion/physical-plan/src/repartition/mod.rs | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/datafusion/datasource/src/file_scan_config/sort_pushdown.rs b/datafusion/datasource/src/file_scan_config/sort_pushdown.rs index af08ed71b9a6d..ece84015a7bbc 100644 --- a/datafusion/datasource/src/file_scan_config/sort_pushdown.rs +++ b/datafusion/datasource/src/file_scan_config/sort_pushdown.rs @@ -490,7 +490,7 @@ pub(crate) fn validate_orderings( /// file is scanned, the same values for A, B and C can be repeated in /// the same sorted stream /// -///```text +/// ```text /// ┏ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ /// ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┐ ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┃ /// ┃ ┌───────────────┐ ┌──────────────┐ │ diff --git a/datafusion/doc/src/lib.rs b/datafusion/doc/src/lib.rs index 591a5a62f3b20..11b63ff661f50 100644 --- a/datafusion/doc/src/lib.rs +++ b/datafusion/doc/src/lib.rs @@ -281,7 +281,7 @@ impl DocumentationBuilder { /// /// The argument is rendered like below if None is passed through: /// - /// ```text + /// ```text /// : /// The expression to operate on. Can be a constant, column, or function, and any combination of operators. /// ``` diff --git a/datafusion/expr/src/expr.rs b/datafusion/expr/src/expr.rs index d6276b944c334..4b8ec9175732b 100644 --- a/datafusion/expr/src/expr.rs +++ b/datafusion/expr/src/expr.rs @@ -92,7 +92,7 @@ impl From for NullTreatment { /// /// For example the expression `A + 1` will be represented as /// -///```text +/// ```text /// BinaryExpr { /// left: Expr::Column("A"), /// op: Operator::Plus, @@ -265,7 +265,7 @@ impl From for NullTreatment { /// /// [`ExplainFormat::Tree`]: crate::logical_plan::ExplainFormat::Tree /// -///``` +/// ``` /// # use datafusion_expr::{lit, col}; /// let expr = col("c1") + lit(42); /// assert_eq!(format!("{}", expr.human_display()), "c1 + 42"); @@ -301,7 +301,7 @@ impl From for NullTreatment { /// Rewrite an expression, replacing references to column "a" in an /// to the literal `42`: /// -/// ``` +/// ``` /// # use datafusion_common::tree_node::{Transformed, TreeNode}; /// # use datafusion_expr::{col, Expr, lit}; /// // expression a = 5 AND b = 6 diff --git a/datafusion/physical-plan/src/aggregates/row_hash.rs b/datafusion/physical-plan/src/aggregates/row_hash.rs index b4ac7d060576f..1164fb37b384a 100644 --- a/datafusion/physical-plan/src/aggregates/row_hash.rs +++ b/datafusion/physical-plan/src/aggregates/row_hash.rs @@ -262,7 +262,7 @@ enum OutOfMemoryMode { /// /// group_values accumulators /// -/// ``` +/// ``` /// /// For example, given a query like `COUNT(x), SUM(y) ... GROUP BY z`, /// [`group_values`] will store the distinct values of `z`. There will diff --git a/datafusion/physical-plan/src/display.rs b/datafusion/physical-plan/src/display.rs index 756a68b1a958d..36722469b1626 100644 --- a/datafusion/physical-plan/src/display.rs +++ b/datafusion/physical-plan/src/display.rs @@ -75,7 +75,7 @@ pub enum DisplayFormatType { /// │ partition_sizes: [1] │ /// │ Parquet │ /// └───────────────────────────┘ - /// ``` + /// ``` TreeRender, } diff --git a/datafusion/physical-plan/src/repartition/mod.rs b/datafusion/physical-plan/src/repartition/mod.rs index 5d87836ba518b..6c82cc296acbd 100644 --- a/datafusion/physical-plan/src/repartition/mod.rs +++ b/datafusion/physical-plan/src/repartition/mod.rs @@ -917,7 +917,7 @@ impl BatchPartitioner { /// used to get 3 even streams of `RecordBatch`es /// /// -///```text +/// ```text /// ▲ ▲ ▲ /// │ │ │ /// │ │ │