Skip to content

Commit 0fd6a40

Browse files
authored
docs: fix docstring formatting (#20158)
We were missing some closing backticks
1 parent b1cf165 commit 0fd6a40

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

datafusion/common/src/utils/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ impl SingleRowListArrayBuilder {
516516
/// );
517517
///
518518
/// assert_eq!(list_arr, expected);
519+
/// ```
519520
pub fn arrays_into_list_array(
520521
arr: impl IntoIterator<Item = ArrayRef>,
521522
) -> Result<ListArray> {
@@ -587,6 +588,7 @@ pub enum ListCoercion {
587588
/// let base_type = DataType::Float64;
588589
/// let coerced_type = coerced_type_with_base_type_only(&data_type, &base_type, None);
589590
/// assert_eq!(coerced_type, DataType::List(Arc::new(Field::new_list_field(DataType::Float64, true))));
591+
/// ```
590592
pub fn coerced_type_with_base_type_only(
591593
data_type: &DataType,
592594
base_type: &DataType,

datafusion/expr/src/expr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ impl From<sqlparser::ast::NullTreatment> for NullTreatment {
310310
/// assert!(rewritten.transformed);
311311
/// // to 42 = 5 AND b = 6
312312
/// assert_eq!(rewritten.data, lit(42).eq(lit(5)).and(col("b").eq(lit(6))));
313+
/// ```
313314
#[derive(Clone, PartialEq, PartialOrd, Eq, Debug, Hash)]
314315
pub enum Expr {
315316
/// An expression with a specific name.

0 commit comments

Comments
 (0)