Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Docs
  • Loading branch information
LemmingAvalanche committed Oct 16, 2021
commit 958e378cb953977cd3ad44b90f75c873792bd37a
8 changes: 4 additions & 4 deletions src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fn _message_trailers(message: CString) -> Result<MessageTrailers, Error> {
Ok(ret)
}

/// Collection of UTF-8-encoded trailer key–value pairs.
/// Collection of UTF-8-encoded trailers.
///
/// Use `iter()` to get access to the values.
pub struct MessageTrailersStrs(MessageTrailers);
Expand All @@ -80,7 +80,7 @@ impl MessageTrailersStrs {
}
}

/// Collection of unencoded (bytes) trailer key–value pairs.
/// Collection of unencoded (bytes) trailers.
///
/// Use `iter()` to get access to the values.
pub struct MessageTrailersBytes(MessageTrailers);
Expand Down Expand Up @@ -155,7 +155,7 @@ fn to_raw_tuple(trailers: &MessageTrailers, index: usize) -> (*const c_char, *co
}
}

/// Borrowed iterator over the UTF-8-encoded trailer.
/// Borrowed iterator over the UTF-8-encoded trailers.
pub struct MessageTrailersStrsIterator<'a>(MessageTrailersIterator<'a>);

impl<'pair> Iterator for MessageTrailersStrsIterator<'pair> {
Expand Down Expand Up @@ -197,7 +197,7 @@ fn to_str_tuple(trailers: &MessageTrailers, index: usize) -> (&str, &str) {
}
}

/// Borrowed iterator over the raw (bytes) trailer.
/// Borrowed iterator over the raw (bytes) trailers.
pub struct MessageTrailersBytesIterator<'a>(MessageTrailersIterator<'a>);

impl<'pair> Iterator for MessageTrailersBytesIterator<'pair> {
Expand Down