Skip to content

Commit

Permalink
Mention set_pledged_src_size in doc for include_contentsize
Browse files Browse the repository at this point in the history
  • Loading branch information
gyscos committed Dec 23, 2021
1 parent ec18c79 commit 821f10d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ macro_rules! encoder_common {
))
}

/// Enables or disabled storing of the contentsize
/// Enables or disabled storing of the contentsize.
///
/// Note that this only has an effect if the size is given with `set_pledged_src_size`.
pub fn include_contentsize(
&mut self,
include_contentsize: bool,
Expand Down

0 comments on commit 821f10d

Please sign in to comment.