Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Sep 4, 2024
1 parent 699221f commit 7b5f9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenoh/src/api/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ impl ZBytes {

/// Get a [`ZBytesWriter`] implementing [`std::io::Write`] trait.
///
/// See [`ZBytesWriter`] on how to chain the serialization of differnt types into a single [`ZBytes`].
/// See [`ZBytesWriter`] on how to chain the serialization of different types into a single [`ZBytes`].
pub fn writer(&mut self) -> ZBytesWriter<'_> {
ZBytesWriter(self.0.writer())
}
Expand Down Expand Up @@ -449,7 +449,7 @@ impl ZBytes {
/// ```
///
/// If you want to be sure that no copy is performed at all, then you should use [`ZBytes::slices`].
/// Please note that in this case data may not be contiguous in memory and it is the responsability of the user to properly parse the raw slices.
/// Please note that in this case data may not be contiguous in memory and it is the responsibility of the user to properly parse the raw slices.
pub fn into<'a, T>(&'a self) -> T
where
ZSerde: Deserialize<T, Input<'a> = &'a ZBytes, Error = Infallible>,
Expand Down

0 comments on commit 7b5f9ae

Please sign in to comment.