Skip to content

Commit da87ec4

Browse files
authored
fix: docs for reader::first_char now no longer incorrectly state None may be returned
`first_char`'s return type is `char`, not `Option<char>`, so `Option<_>::None` can never be returned
1 parent 69565b2 commit da87ec4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/reader.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ use std::io::BufRead;
5555

5656
/// Returns the first character of a string slice.
5757
///
58-
/// If `input` is not empty, then its first char will be returned. Otherwise,
59-
/// `None` is returned.
60-
///
6158
/// # Panics
6259
///
6360
/// This function will panic if `input` is an empty string slice.

0 commit comments

Comments
 (0)