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 3374bcd commit 72daef0Copy full SHA for 72daef0
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