Skip to content

Commit 0f7c1c6

Browse files
tottotoseanmonstar
authored andcommitted
doc(core): add detailed document to Header encode method
1 parent 03079f0 commit 0f7c1c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

headers-core/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ pub trait Header {
2929
Self: Sized,
3030
I: Iterator<Item = &'i HeaderValue>;
3131

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

0 commit comments

Comments
 (0)