mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 00:43:33 +01:00
Improve wording around all
and any
(#6524)
* Improve wording around `all` and `any` The role of the `predicate` for `all` and `any` was not as clear. See #6499 * type-o * type-o Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
This commit is contained in:
parent
d1e1d0ac3e
commit
1adebefc3e
@ -18,17 +18,17 @@ impl Command for All {
|
||||
.required(
|
||||
"predicate",
|
||||
SyntaxShape::RowCondition,
|
||||
"the predicate that must match",
|
||||
"the predicate expression that must evaluate to a boolean",
|
||||
)
|
||||
.category(Category::Filters)
|
||||
}
|
||||
|
||||
fn usage(&self) -> &str {
|
||||
"Test if every element of the input matches a predicate."
|
||||
"Test if every element of the input fulfills a predicate expression."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["every"]
|
||||
vec!["every", "and"]
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
|
@ -18,17 +18,17 @@ impl Command for Any {
|
||||
.required(
|
||||
"predicate",
|
||||
SyntaxShape::RowCondition,
|
||||
"the predicate that must match",
|
||||
"the predicate expression that should return a boolean",
|
||||
)
|
||||
.category(Category::Filters)
|
||||
}
|
||||
|
||||
fn usage(&self) -> &str {
|
||||
"Tests if any element of the input matches a predicate."
|
||||
"Tests if any element of the input fulfills a predicate expression."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["some"]
|
||||
vec!["some", "or"]
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
|
Loading…
Reference in New Issue
Block a user