diff --git a/src/reader.rs b/src/reader.rs index db792541..c4e94aed 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -17,7 +17,7 @@ use bzip2::reader::BzDecompressor; /// { /// // For demonstration purposes we read from an empty buffer. /// // Normally a File object would be used. -/// let buf = [0u8, 128]; +/// let buf = [0u8, ..128]; /// let mut reader = std::io::BufReader::new(&buf); /// /// let zip = try!(zip::ZipReader::new(reader)); diff --git a/src/writer.rs b/src/writer.rs index c092c4d8..18535f26 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -32,7 +32,7 @@ enum GenericZipWriter /// let w = std::io::BufWriter::new(&mut buf); /// let mut zip = zip::ZipWriter::new(w); /// -/// try!(zip.start_file("hello_world.txt", zip::compression::Stored)); +/// try!(zip.start_file("hello_world.txt", zip::CompressionMethod::Stored)); /// try!(zip.write(b"Hello, World!")); /// /// // Optionally finish the zip. (this is also done on drop)