Skip to content

Commit

Permalink
GzBuilder documentation rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
opilar committed Apr 13, 2017
1 parent 72d6a70 commit 583f8d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,17 @@ impl Builder {
///
/// # Panics
///
/// Panics if `filename` argument is empty slice.
/// Panics if the `filename` slice contains a zero.
pub fn filename(mut self, filename: &[u8]) -> Builder {
self.filename = Some(CString::new(filename).unwrap());
self
}

/// Configure the `comment` field in the gzip header.
///
///
/// # Panics
///
/// Panics if `filename` argument is empty slice.
/// Panics if the `comment` slice contains a zero.
pub fn comment(mut self, comment: &[u8]) -> Builder {
self.comment = Some(CString::new(comment).unwrap());
self
Expand Down

0 comments on commit 583f8d2

Please sign in to comment.