From 823c73f480d602d1cf4b46d2515c7fb98881dfd8 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Wed, 2 Jul 2025 18:34:55 +0100 Subject: [PATCH] docs: Fix code examples in style guide --- docs/development/code_style.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/development/code_style.md b/docs/development/code_style.md index 6051c787..7fa9d6bb 100644 --- a/docs/development/code_style.md +++ b/docs/development/code_style.md @@ -181,10 +181,10 @@ debug!( **Always use closure guards instead of implicitly dropped guards.** This makes lock scopes explicit and helps prevent deadlocks. -Use the `WithLock` trait from `continuwuity-core::utils::with_lock`: +Use the `WithLock` trait from `core::utils::with_lock`: ```rs -use continuwuity_core::utils::with_lock::WithLock; +use conduwuit::utils::with_lock::WithLock; // Good - explicit closure guard shared_data.with_lock(|data| { @@ -205,7 +205,7 @@ shared_data.with_lock(|data| { For async contexts, use the async variant: ```rs -use continuwuity_core::utils::with_lock::WithLockAsync; +use conduwuit::utils::with_lock::WithLockAsync; // Good - async closure guard async_shared_data.with_lock(|data| {