From 0719f5b6173f660993f978a35097198cdc33e756 Mon Sep 17 00:00:00 2001
From: Mathijs van de Nes <git@mathijs.vd-nes.nl>
Date: Tue, 2 Dec 2014 17:07:07 +0100
Subject: [PATCH] Fix tests

---
 src/reader.rs | 2 +-
 src/writer.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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