Skip to content

Commit e0c1637

Browse files
committed
refactor: update arg names
1 parent 6f9c1a2 commit e0c1637

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ expr_fn!(cosh, num);
407407
expr_fn!(degrees, num);
408408
expr_fn!(decode, input encoding);
409409
expr_fn!(encode, input encoding);
410+
expr_fn!(ends_with, string suffix, "Returns true if string ends with suffix.");
410411
expr_fn!(exp, num);
411412
expr_fn!(factorial, num);
412413
expr_fn!(floor, num);
@@ -473,8 +474,7 @@ expr_fn!(
473474
"Splits string at occurrences of delimiter and returns the n'th field (counting from one)."
474475
);
475476
expr_fn!(sqrt, num);
476-
expr_fn!(starts_with, arg1 arg2, "Returns true if string starts with prefix.");
477-
expr_fn!(ends_with, arg1 arg2, "Returns true if string ends with suffix.");
477+
expr_fn!(starts_with, string prefix, "Returns true if string starts with prefix.");
478478
expr_fn!(strpos, string substring, "Returns starting index of specified substring within string, or zero if it's not present. (Same as position(substring in string), but note the reversed argument order.)");
479479
expr_fn!(substr, string position);
480480
expr_fn!(tan, num);

0 commit comments

Comments
 (0)