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 authored and seanmonstar committed Jan 20, 2024
1 parent 03079f0 commit 0f7c1c6
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 0f7c1c6

Please sign in to comment.