diff --git a/crates/nu-test-support/src/lib.rs b/crates/nu-test-support/src/lib.rs index a60b75217c..86ecd29f10 100644 --- a/crates/nu-test-support/src/lib.rs +++ b/crates/nu-test-support/src/lib.rs @@ -35,7 +35,7 @@ mod tests { open los_tres_amigos.txt | from-csv | get rusty_luck - | str --to-int + | str to-int | math sum | echo "$it" "#, @@ -43,7 +43,7 @@ mod tests { assert_eq!( actual, - r#"open los_tres_amigos.txt | from-csv | get rusty_luck | str --to-int | math sum | echo "$it""# + r#"open los_tres_amigos.txt | from-csv | get rusty_luck | str to-int | math sum | echo "$it""# ); } } diff --git a/docs/commands/str.md b/docs/commands/str.md index 15b9249558..0518ed38e0 100644 --- a/docs/commands/str.md +++ b/docs/commands/str.md @@ -55,7 +55,7 @@ Applies the subcommand to a value or a table. ``` ```shell -> echo "1, 2, 3" | split row "," | str to int | math sum +> echo "1, 2, 3" | split row "," | str to-int | math sum 6 ```