From b6dafa6e679de8ca452c05056e85fe55f4aaa663 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Fri, 28 Jul 2023 23:47:00 +0200 Subject: [PATCH] Fix `math log` signature (#9845) While we are at it also fix `math log` to a more narrow type. This supersedes part of #9740 --- crates/nu-command/src/math/log.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/nu-command/src/math/log.rs b/crates/nu-command/src/math/log.rs index dcc91e6943..733c3b43e8 100644 --- a/crates/nu-command/src/math/log.rs +++ b/crates/nu-command/src/math/log.rs @@ -22,10 +22,9 @@ impl Command for SubCommand { ) .input_output_types(vec![ (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::Float)), ), ]) .allow_variants_without_examples(true)