From d8e66decbe8bd7a1981579fd49ea333c0acd41ff Mon Sep 17 00:00:00 2001 From: Luca Cominardi Date: Mon, 10 Jun 2024 15:56:34 +0200 Subject: [PATCH] Fix typos (#1110) --- commons/zenoh-util/src/std_only/time_range.rs | 2 +- io/zenoh-links/zenoh-link-udp/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commons/zenoh-util/src/std_only/time_range.rs b/commons/zenoh-util/src/std_only/time_range.rs index 886083b2f0..bfbb4e3303 100644 --- a/commons/zenoh-util/src/std_only/time_range.rs +++ b/commons/zenoh-util/src/std_only/time_range.rs @@ -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 { diff --git a/io/zenoh-links/zenoh-link-udp/src/lib.rs b/io/zenoh-links/zenoh-link-udp/src/lib.rs index b520973df8..31ca32e71b 100644 --- a/io/zenoh-links/zenoh-link-udp/src/lib.rs +++ b/io/zenoh-links/zenoh-link-udp/src/lib.rs @@ -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