Skip to content

Commit

Permalink
doc(core): add detailed document to Header encode method
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Jan 19, 2024
1 parent 7b91e07 commit f635a17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion headers-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ pub trait Header {
Self: Sized,
I: Iterator<Item = &'i HeaderValue>;

/// Encode this type to a [`HeaderValue`].
/// Encode this type to a [`HeaderValue`], and add it to a container
/// which has [`HeaderValue`] type as each element.
///
/// This function should be infallible. Any errors converting to a
/// `HeaderValue` should have been caught when parsing or constructing
Expand Down

0 comments on commit f635a17

Please sign in to comment.