mirror of
https://github.com/nushell/nushell
synced 2025-01-14 06:04:09 +00:00
Fix zip signature to mention closure input type (#12216)
# Description `help zip` now reports: ``` other <one_of(any, closure())>: The other input, or closure returning a stream. ``` Thanks to @edhowland for pointing this out ❤️ # User-Facing Changes - Doc change for zip # Tests + Formatting - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - 🟢 `toolkit test` - 🟢 `toolkit test stdlib` # After Submitting
This commit is contained in:
parent
1cb5221f01
commit
a5d03b1d6e
1 changed files with 5 additions and 1 deletions
|
@ -30,7 +30,11 @@ impl Command for Zip {
|
||||||
Type::List(Box::new(Type::List(Box::new(Type::Any)))),
|
Type::List(Box::new(Type::List(Box::new(Type::Any)))),
|
||||||
),
|
),
|
||||||
])
|
])
|
||||||
.required("other", SyntaxShape::Any, "The other input.")
|
.required(
|
||||||
|
"other",
|
||||||
|
SyntaxShape::OneOf(vec![SyntaxShape::Any, SyntaxShape::Closure(Some(vec![]))]),
|
||||||
|
"The other input, or closure returning a stream.",
|
||||||
|
)
|
||||||
.category(Category::Filters)
|
.category(Category::Filters)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue