mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 09:53:43 +01: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
@ -30,7 +30,11 @@ impl Command for Zip {
|
||||
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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user