We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
trim_right
1 parent c554358 commit 592c55dCopy full SHA for 592c55d
jd4/integration_test.py
@@ -90,7 +90,7 @@ def test_rs(self):
90
let mut line = String::new();
91
std::io::stdin().read_line(&mut line).unwrap();
92
let numbers: Vec<i32> =
93
- line.trim_right().split(' ').map(|s| s.parse().unwrap()).collect();
+ line.trim_end().split(' ').map(|s| s.parse().unwrap()).collect();
94
let sum: i32 = numbers.iter().sum();
95
println!("{}", sum);
96
}""")
0 commit comments