diff --git a/crates/nu-cmd-lang/src/core_commands/return_.rs b/crates/nu-cmd-lang/src/core_commands/return_.rs index 80cdb27d45..b59500565f 100644 --- a/crates/nu-cmd-lang/src/core_commands/return_.rs +++ b/crates/nu-cmd-lang/src/core_commands/return_.rs @@ -19,7 +19,7 @@ impl Command for Return { fn signature(&self) -> nu_protocol::Signature { Signature::build("return") - .input_output_types(vec![(Type::Nothing, Type::Nothing)]) + .input_output_types(vec![(Type::Nothing, Type::Any)]) .optional("return_value", SyntaxShape::Any, "optional value to return") .category(Category::Core) }