From da87ec4d7077e0c3f57c9d919b7744b4b65c9cf1 Mon Sep 17 00:00:00 2001 From: taryn <4861023+phrohdoh@users.noreply.github.com> Date: Mon, 5 Jul 2021 15:49:19 -0500 Subject: [PATCH] fix: docs for reader::first_char now no longer incorrectly state `None` may be returned `first_char`'s return type is `char`, not `Option`, so `Option<_>::None` can never be returned --- src/reader.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/reader.rs b/src/reader.rs index 92aa278..3b6c9fa 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -55,9 +55,6 @@ use std::io::BufRead; /// Returns the first character of a string slice. /// -/// If `input` is not empty, then its first char will be returned. Otherwise, -/// `None` is returned. -/// /// # Panics /// /// This function will panic if `input` is an empty string slice.