mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 08:36:10 +02:00
Improve external output in subexprs (#294)
This commit is contained in:
@ -42,7 +42,7 @@ impl Command for SubCommand {
|
||||
/// Calculate product of given values
|
||||
pub fn product(values: &[Value], head: &Span) -> Result<Value, ShellError> {
|
||||
let product_func = reducer_for(Reduce::Product);
|
||||
product_func(Value::nothing(), values.to_vec(), *head)
|
||||
product_func(Value::nothing(*head), values.to_vec(), *head)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Reference in New Issue
Block a user