Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: gabrik <[email protected]>
  • Loading branch information
gabrik committed May 3, 2023
1 parent d7d4be3 commit 081857a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenoh-flow/src/types/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Payload {
/// the [Arc] is cloned.
//
// NOTE: This method is used by, at least, our Python API.
pub fn try_as_gytes(&self) -> Result<Arc<Vec<u8>>> {
pub fn try_as_bytes(&self) -> Result<Arc<Vec<u8>>> {
match self {
Payload::Bytes(bytes) => Ok(bytes.clone()),
Payload::Typed((typed_data, serializer)) => {
Expand Down

0 comments on commit 081857a

Please sign in to comment.