From 52358bf2c1b5bdbd110b4c2e279dd18a7864bbfc Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 20 Jul 2024 01:38:27 +0800 Subject: [PATCH] fix --- crates/nu-command/src/filters/reduce.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/src/filters/reduce.rs b/crates/nu-command/src/filters/reduce.rs index c373d65e12..824e7709e5 100644 --- a/crates/nu-command/src/filters/reduce.rs +++ b/crates/nu-command/src/filters/reduce.rs @@ -69,7 +69,7 @@ impl Command for Reduce { Example { example: r#"[[foo baz] [baz quux]] | reduce --fold "foobar" {|it, acc| $acc | str replace $it.0 $it.1}"#, description: "Iteratively perform string replace (from left to right): 'foobar' -> 'bazbar' -> 'quuxbar'", - result: Some(Value::test_int("quuxbar")), + result: Some(Value::test_string("quuxbar")), }, Example { example: r#"[ i o t ] | reduce --fold "Arthur, King of the Britons" {|it, acc| $acc | str replace --all $it "X" }"#,