From 4fd2cf46af1279b3f20ef0ca3e914a95c30e9ea8 Mon Sep 17 00:00:00 2001 From: Patrick Siegl <3261314+psiegl@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:34:08 +0100 Subject: [PATCH] Fix typos from typos checker --- commons/zenoh-shm/src/api/provider/shm_provider.rs | 2 +- commons/zenoh-shm/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commons/zenoh-shm/src/api/provider/shm_provider.rs b/commons/zenoh-shm/src/api/provider/shm_provider.rs index fec3297766..70081d0b93 100644 --- a/commons/zenoh-shm/src/api/provider/shm_provider.rs +++ b/commons/zenoh-shm/src/api/provider/shm_provider.rs @@ -363,7 +363,7 @@ where } /// Deallocating policy. -/// Forcely deallocate up to N buffers until allocation succeeds. +/// Forcibly deallocate up to N buffers until allocation succeeds. #[zenoh_macros::unstable_doc] pub struct Deallocate< const N: usize, diff --git a/commons/zenoh-shm/src/lib.rs b/commons/zenoh-shm/src/lib.rs index ec17f463f9..36f2068db9 100644 --- a/commons/zenoh-shm/src/lib.rs +++ b/commons/zenoh-shm/src/lib.rs @@ -151,7 +151,7 @@ impl ShmBufInner { /// # Safety /// You should understand what you are doing, as overestimation /// of the reference counter can lead to memory being stalled until - /// recovered by watchdog subsystem or forcely deallocated + /// recovered by watchdog subsystem or forcibly deallocated pub unsafe fn inc_ref_count(&self) { self.header.header().refcount.fetch_add(1, Ordering::SeqCst); }