Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
notfilippo committed Oct 9, 2024
1 parent 88c75fc commit 11524da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/expr/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ use sqlparser::ast::{
/// if let Expr::BinaryExpr(binary_expr) = expr {
/// assert_eq!(*binary_expr.left, col("c1"));
/// let scalar = ScalarValue::Int32(Some(42));
/// assert_eq!(*binary_expr.right, Expr::Literal(scalar));
/// assert_eq!(*binary_expr.right, Expr::from(scalar));
/// assert_eq!(binary_expr.op, Operator::Eq);
/// }
/// ```
Expand Down Expand Up @@ -191,7 +191,7 @@ use sqlparser::ast::{
/// // apply recursively visits all nodes in the expression tree
/// expr.apply(|e| {
/// if let Expr::Literal(scalar) = e {
/// scalars.insert(scalar);
/// scalars.insert(scalar.value());
/// }
/// // The return value controls whether to continue visiting the tree
/// Ok(TreeNodeRecursion::Continue)
Expand Down

0 comments on commit 11524da

Please sign in to comment.