Fix tests

This commit is contained in:
Mathijs van de Nes 2014-12-02 17:07:07 +01:00
parent 54503e78f2
commit 0719f5b617
2 changed files with 2 additions and 2 deletions

View file

@ -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));

View file

@ -32,7 +32,7 @@ enum GenericZipWriter<W>
/// 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)