1
0
mirror of https://github.com/nushell/nushell.git synced 2025-06-28 22:01:40 +02:00

Fix math log signature ()

While we are at it also fix `math log` to a more narrow type.

This supersedes part of 
This commit is contained in:
Stefan Holderbach 2023-07-28 23:47:00 +02:00 committed by GitHub
parent 152a541696
commit b6dafa6e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,10 +22,9 @@ impl Command for SubCommand {
) )
.input_output_types(vec![ .input_output_types(vec![
(Type::Number, Type::Float), (Type::Number, Type::Float),
(Type::Number, Type::Int),
( (
Type::List(Box::new(Type::Number)), Type::List(Box::new(Type::Number)),
Type::List(Box::new(Type::Number)), Type::List(Box::new(Type::Float)),
), ),
]) ])
.allow_variants_without_examples(true) .allow_variants_without_examples(true)