mirror of
https://github.com/danbulant/nushell
synced 2026-05-22 13:59:17 +00:00
Fix str --to-int usages (#2167)
This commit is contained in:
parent
07594222c0
commit
97cedeb324
2 changed files with 3 additions and 3 deletions
|
|
@ -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""#
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue