diff --git a/src/reader.rs b/src/reader.rs index 5c0126cd..3c31d6ac 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 d0501c31..1aacca0f 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -28,7 +28,7 @@ enum GenericZipWriter /// fn doit() -> zip::result::ZipResult<()> /// { /// // For this example we write to a buffer, but normally you should use a File -/// let mut buf = [0u8, ..65536]; +/// let mut buf = [0u8; 65536]; /// let w = std::io::BufWriter::new(&mut buf); /// let mut zip = zip::ZipWriter::new(w); ///