fixed README

This commit is contained in:
Rutger 2016-06-03 21:46:36 +02:00
parent f08d22d030
commit fe2ceb87dd
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "m3u8-rs" name = "m3u8-rs"
version = "1.0.0" version = "1.0.1"
authors = ["Rutger"] authors = ["Rutger"]
readme = "README.md" readme = "README.md"
repository = "https://github.com/rutgersc/m3u8-rs" repository = "https://github.com/rutgersc/m3u8-rs"

View file

@ -57,7 +57,7 @@ let mut file = std::fs::File::open("playlist.m3u8").unwrap();
let mut bytes: Vec<u8> = Vec::new(); let mut bytes: Vec<u8> = Vec::new();
file.read_to_end(&mut bytes).unwrap(); file.read_to_end(&mut bytes).unwrap();
let parsed = m3u8::parse_playlist(&bytes); let parsed = m3u8_rs::parse_playlist(&bytes);
match parsed { match parsed {
IResult::Done(i, Playlist::MasterPlaylist(pl)) => println!("Master playlist:\n{}", pl), IResult::Done(i, Playlist::MasterPlaylist(pl)) => println!("Master playlist:\n{}", pl),