Skip to content

Commit

Permalink
Fix typos (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets authored Jun 10, 2024
1 parent 528b87a commit d8e66de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commons/zenoh-util/src/std_only/time_range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ impl TimeExpr {
}),
}
}
/// Subtracts `duration` from `self`, returning `None` if `self` is a `Fixed(SystemTime)` and subsctracting the duration is not possible
/// Subtracts `duration` from `self`, returning `None` if `self` is a `Fixed(SystemTime)` and subtracting the duration is not possible
/// because the result would be outside the bounds of the underlying data structure (see [`SystemTime::checked_sub`]).
/// Otherwise returns `Some(time_expr)`.
pub fn checked_sub(&self, duration: f64) -> Option<Self> {
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-udp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use zenoh_result::{zerror, ZResult};
///
/// # Note
///
/// The theoretical Maximum Transmission Unit (MTU) of UDP is `u16::MAX`. From that we substract the
/// The theoretical Maximum Transmission Unit (MTU) of UDP is `u16::MAX`. From that we subtract the
/// size of a UDP header (8 bytes) and the size of IPv4/IPv6 headers (resp. 20 and 40 bytes).
///
/// Although in IPv6 it is possible to have UDP datagrams of size greater than 65,535 bytes via IPv6
Expand Down

0 comments on commit d8e66de

Please sign in to comment.