Skip to content

Commit 1636396

Browse files
committed
fix comment
1 parent 77ab05b commit 1636396

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/ui/bytes_count_to_len.fixed

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ fn main() {
2020
let vector = [0, 1, 2];
2121
let _ = vector.iter().count();
2222

23-
// should not fix, because type is slice.
23+
// The type is slice, so should not fix
2424
let _ = &[1, 2, 3].bytes().count();
2525

2626
let bytes: &[u8] = &[1, 2, 3];
2727
bytes.bytes().count();
2828

29-
// should not fix, because type is File.
29+
// The type is File, so should not fix
3030
let _ = File::open("foobar").unwrap().bytes().count();
3131

3232
let f = File::open("foobar").unwrap();

tests/ui/bytes_count_to_len.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ fn main() {
2020
let vector = [0, 1, 2];
2121
let _ = vector.iter().count();
2222

23-
// should not fix, because type is slice.
23+
// The type is slice, so should not fix
2424
let _ = &[1, 2, 3].bytes().count();
2525

2626
let bytes: &[u8] = &[1, 2, 3];
2727
bytes.bytes().count();
2828

29-
// should not fix, because type is File.
29+
// The type is File, so should not fix
3030
let _ = File::open("foobar").unwrap().bytes().count();
3131

3232
let f = File::open("foobar").unwrap();

0 commit comments

Comments
 (0)