Skip to content

Commit

Permalink
Fix doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
lbirkert committed Aug 6, 2024
1 parent b65d842 commit f518787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qb-proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ impl QBP {
/// Send a binary payload through this protocol.
///
/// # Cancelation Safety
/// This method is not cancel safe. It should always be awaited.
/// This method is cancelation safe.
pub async fn send_payload(&mut self, write: &mut impl Write, payload: &[u8]) -> Result<()> {
let (_, content_encoding) = self.get_content()?;
let packet = content_encoding.encode(&payload);
Expand All @@ -438,7 +438,7 @@ impl QBP {
/// Send a message through this protocol.
///
/// # Cancelation Safety
/// This method is not cancel safe. It should always be awaited.
/// This method is cancelation safe.
pub async fn send<T>(&mut self, write: &mut impl Write, msg: T) -> Result<()>
where
for<'a> T: QBPMessage<'a>,
Expand Down

0 comments on commit f518787

Please sign in to comment.