Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ion
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
ion
Commits
fbe1b8e3
Unverified
Commit
fbe1b8e3
authored
4 years ago
by
Michel Le Bihan
Browse files
Options
Downloads
Patches
Plain Diff
Change starts-with, ends-with and contains builtin descriptions
parent
ca069ed1
No related branches found
No related tags found
1 merge request
!1198
Change ends-with builtin description
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/builtins/conditionals.rs
+8
-8
8 additions, 8 deletions
src/lib/builtins/conditionals.rs
with
8 additions
and
8 deletions
src/lib/builtins/conditionals.rs
+
8
−
8
View file @
fbe1b8e3
...
...
@@ -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
start
s with another one"
,
desc
=
"check if a given string
end
s 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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment