Skip to content

Commit

Permalink
message: fix documentation on Message::binary()
Browse files Browse the repository at this point in the history
  • Loading branch information
adryzz authored and daniel-abramov committed Dec 18, 2024
1 parent fb9c154 commit ec442e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl Message {
Message::Text(string.into())
}

/// Create a new binary WebSocket message by converting to `Vec<u8>`.
/// Create a new binary WebSocket message by converting to `Bytes`.
pub fn binary<B>(bin: B) -> Message
where
B: Into<Bytes>,
Expand Down

0 comments on commit ec442e6

Please sign in to comment.