We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb1e963 commit 3cc2939Copy full SHA for 3cc2939
collector/runtime-benchmarks/asynctest/src/main.rs
@@ -10,7 +10,7 @@ async fn read_the_textfile(file_path: &str) -> io::Result<usize> {
10
let mut total_characters = 0;
11
for line in reader.lines() {
12
let line = line?;
13
- total_characters += line.len();
+ total_characters += line.expect("invalid character").chars().count();
14
}
15
16
Ok(total_characters)
0 commit comments