diff --git a/crates/nu-command/src/filters/all.rs b/crates/nu-command/src/filters/all.rs index 0fab9101eb..6e3ec49dad 100644 --- a/crates/nu-command/src/filters/all.rs +++ b/crates/nu-command/src/filters/all.rs @@ -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 { diff --git a/crates/nu-command/src/filters/any.rs b/crates/nu-command/src/filters/any.rs index b0a2592563..4a641136dd 100644 --- a/crates/nu-command/src/filters/any.rs +++ b/crates/nu-command/src/filters/any.rs @@ -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 {