Skip to content

Commit

Permalink
Minor: Fixed regexpr_match docs (#13008)
Browse files Browse the repository at this point in the history
* regexp_match

* update generated docs

---------

Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
jonathanc-n and alamb authored Oct 18, 2024
1 parent 73ba4c4 commit 8c9b915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datafusion/functions/src/regex/regexpmatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn get_regexp_match_doc() -> &'static Documentation {
DOCUMENTATION.get_or_init(|| {
Documentation::builder()
.with_doc_section(DOC_SECTION_REGEX)
.with_description("Returns a list of [regular expression](https://docs.rs/regex/latest/regex/#syntax) matches in a string.")
.with_description("Returns the first [regular expression](https://docs.rs/regex/latest/regex/#syntax) matche in a string.")
.with_syntax_example("regexp_match(str, regexp[, flags])")
.with_sql_example(r#"```sql
> select regexp_match('Köln', '[a-zA-Z]ö[a-zA-Z]{2}');
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user-guide/sql/scalar_functions_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ Additional examples can be found [here](https://github.com/apache/datafusion/blo

### `regexp_match`

Returns a list of [regular expression](https://docs.rs/regex/latest/regex/#syntax) matches in a string.
Returns the first [regular expression](https://docs.rs/regex/latest/regex/#syntax) matche in a string.

```
regexp_match(str, regexp[, flags])
Expand Down

0 comments on commit 8c9b915

Please sign in to comment.