1
0
mirror of https://github.com/nushell/nushell.git synced 2025-07-05 00:50:11 +02:00

Fix str --to-int usages ()

This commit is contained in:
Arash Outadi
2020-07-13 12:07:34 -07:00
committed by GitHub
parent 07594222c0
commit 97cedeb324
2 changed files with 3 additions and 3 deletions
crates/nu-test-support/src
docs/commands

@ -35,7 +35,7 @@ mod tests {
open los_tres_amigos.txt open los_tres_amigos.txt
| from-csv | from-csv
| get rusty_luck | get rusty_luck
| str --to-int | str to-int
| math sum | math sum
| echo "$it" | echo "$it"
"#, "#,
@ -43,7 +43,7 @@ mod tests {
assert_eq!( assert_eq!(
actual, 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""#
); );
} }
} }

@ -55,7 +55,7 @@ Applies the subcommand to a value or a table.
``` ```
```shell ```shell
> echo "1, 2, 3" | split row "," | str to int | math sum > echo "1, 2, 3" | split row "," | str to-int | math sum
6 6
``` ```