Skip to content

Commit

Permalink
Fix doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreenbury committed Sep 18, 2024
1 parent 877c660 commit 08878b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions popgetter/src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ fn filter_contains(column: &str, value: &str, case_sensitivity: &CaseSensitivity
col(column).str().contains(lit(regex), false)
}

// /// Search in a column for a string literal (i.e. not a regex!). The search parameter must be a
// /// prefix of the column value.
/// Search in a column for a string literal (i.e. not a regex!). The search parameter must be a
/// prefix of the column value.
fn filter_startswith(column: &str, value: &str, case_sensitivity: &CaseSensitivity) -> Expr {
let regex = match case_sensitivity {
CaseSensitivity::Insensitive => format!("(?i)^{}", regex::escape(value)),
Expand Down

0 comments on commit 08878b3

Please sign in to comment.