Skip to content
Snippets Groups Projects
Unverified Commit fbe1b8e3 authored by Michel Le Bihan's avatar Michel Le Bihan
Browse files

Change starts-with, ends-with and contains builtin descriptions

parent ca069ed1
No related branches found
No related tags found
1 merge request!1198Change ends-with builtin description
......@@ -23,28 +23,28 @@ string_function!(
desc = "check if a given string starts with another one",
man = "
SYNOPSIS
starts_with <PATTERN> tests...
starts-with <PATTERN> tests...
DESCRIPTION
Returns 0 if any argument starts_with contains the first argument, else returns 0"
Returns 0 if the first argument starts with any other argument, else returns 0"
)], starts_with);
string_function!(
#[builtin(
desc = "check if a given string starts with another one",
desc = "check if a given string ends with another one",
man = "
SYNOPSIS
starts_with <PATTERN> tests...
ends-with <PATTERN> tests...
DESCRIPTION
Returns 0 if any argument starts_with contains the first argument, else returns 0"
Returns 0 if the first argument ends with any other argument, else returns 0"
)], ends_with);
string_function!(
#[builtin(
desc = "check if a given string starts with another one",
desc = "check if a given string contains another one",
man = "
SYNOPSIS
starts_with <PATTERN> tests...
contains <PATTERN> tests...
DESCRIPTION
Returns 0 if any argument starts_with contains the first argument, else returns 0"
Returns 0 if the first argument contains any other argument, else returns 0"
)], contains);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment