From af15863688cb10408dfe868ef33d4f93aacd32dd Mon Sep 17 00:00:00 2001 From: Vadim Getmanshchuk Date: Wed, 12 Feb 2020 16:35:31 -0800 Subject: [PATCH] Done -> Ok in examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eeb22fc..6a6ddbf 100644 --- a/README.md +++ b/README.md @@ -60,8 +60,8 @@ file.read_to_end(&mut bytes).unwrap(); let parsed = m3u8_rs::parse_playlist(&bytes); match parsed { - IResult::Done(i, Playlist::MasterPlaylist(pl)) => println!("Master playlist:\n{}", pl), - IResult::Done(i, Playlist::MediaPlaylist(pl)) => println!("Media playlist:\n{}", pl), + IResult::Ok((i, Playlist::MasterPlaylist(pl))) => println!("Master playlist:\n{}", pl), + IResult::Ok((i, Playlist::MediaPlaylist(pl))) => println!("Media playlist:\n{}", pl), IResult::Error(e) => panic!("Parsing error: \n{}", e), IResult::Incomplete(e) => panic!("Parsing error: \n{:?}", e), }