Skip to content

Commit

Permalink
docs: Clarify difference between bitwise/logical ops (#19180)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigogiraoserrao authored Oct 11, 2024
1 parent ff1942f commit 922b764
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/polars-plan/src/dsl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1126,27 +1126,27 @@ impl Expr {
})
}

/// "and" operation.
/// Bitwise "and" operation.
pub fn and<E: Into<Expr>>(self, expr: E) -> Self {
binary_expr(self, Operator::And, expr.into())
}

/// "xor" operation.
/// Bitwise "xor" operation.
pub fn xor<E: Into<Expr>>(self, expr: E) -> Self {
binary_expr(self, Operator::Xor, expr.into())
}

/// "or" operation.
/// Bitwise "or" operation.
pub fn or<E: Into<Expr>>(self, expr: E) -> Self {
binary_expr(self, Operator::Or, expr.into())
}

/// "or" operation.
/// Logical "or" operation.
pub fn logical_or<E: Into<Expr>>(self, expr: E) -> Self {
binary_expr(self, Operator::LogicalOr, expr.into())
}

/// "or" operation.
/// Logical "and" operation.
pub fn logical_and<E: Into<Expr>>(self, expr: E) -> Self {
binary_expr(self, Operator::LogicalAnd, expr.into())
}
Expand Down

0 comments on commit 922b764

Please sign in to comment.