Skip to content

Commit

Permalink
Replace the deprecated use of trim_right (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
twd2 committed Aug 7, 2021
1 parent c554358 commit 592c55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jd4/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_rs(self):
let mut line = String::new();
std::io::stdin().read_line(&mut line).unwrap();
let numbers: Vec<i32> =
line.trim_right().split(' ').map(|s| s.parse().unwrap()).collect();
line.trim_end().split(' ').map(|s| s.parse().unwrap()).collect();
let sum: i32 = numbers.iter().sum();
println!("{}", sum);
}""")
Expand Down

0 comments on commit 592c55d

Please sign in to comment.