From 97cedeb324d6f08296bae4766f4b09a7ab1526e8 Mon Sep 17 00:00:00 2001 From: Arash Outadi Date: Mon, 13 Jul 2020 12:07:34 -0700 Subject: [PATCH] Fix str --to-int usages (#2167) --- crates/nu-test-support/src/lib.rs | 4 ++-- docs/commands/str.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ```