Update crates/nu-command/src/filters/where_.rs

Co-authored-by: Douglas <32344964+NotTheDr01ds@users.noreply.github.com>
This commit is contained in:
132ikl 2025-04-02 18:31:59 -04:00 committed by GitHub
parent 1da3beb1ca
commit 3f70895969
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ impl Command for Where {
fn extra_description(&self) -> &str { fn extra_description(&self) -> &str {
r#"A condition is evaluated for each element of the input, and only elements which meet the condition are included in the output. r#"A condition is evaluated for each element of the input, and only elements which meet the condition are included in the output.
A condition can be either a "row condition", or a closure. A row condition is a special short-hand syntax to makes accessing fields easier. A condition can be either a "row condition" or a closure. A row condition is a special short-hand syntax to simplify field access.
Each element of the input can be accessed through the $it variable. Each element of the input can be accessed through the $it variable.
On the left hand side of a row condition, any field name is automatically expanded to use $it. On the left hand side of a row condition, any field name is automatically expanded to use $it.