diff --git a/src/srt.rs b/src/srt.rs index 09a7545..227f929 100644 --- a/src/srt.rs +++ b/src/srt.rs @@ -16,7 +16,7 @@ //! Thank you for your reading. //! "#; //! -//! let srt = SubRip::parse(text)?; +//! let srt = SubRip::parse(text).unwrap(); //! assert_eq!(srt, SubRip { //! subtitles: vec![ //! SrtSubtitle { @@ -128,7 +128,7 @@ impl SubRip { /// Thank you for your reading. /// "#; /// - /// let srt = SubRip::parse(text)?; + /// let srt = SubRip::parse(text).unwrap(); /// ``` pub fn parse(text: &str) -> ParseResult { str_parser::srt(text).map_err(|err| err.into()) diff --git a/src/vtt.rs b/src/vtt.rs index 8c6ea91..236d0c8 100644 --- a/src/vtt.rs +++ b/src/vtt.rs @@ -17,7 +17,7 @@ //! - You could die. //! "#; //! -//! let vtt = WebVtt::parse(text)?; +//! let vtt = WebVtt::parse(text).unwrap(); //! //! assert_eq!( //! vtt, @@ -160,7 +160,7 @@ impl WebVtt { /// - You could die. /// "#; /// - /// let vtt = WebVtt::parse(text)?; + /// let vtt = WebVtt::parse(text).unwrap(); /// ``` pub fn parse(input: &str) -> Result { crate::vtt_parser::vtt(input).map_err(Into::into)