From d112a141c8f508962f80555d3f7e939eb01e67a3 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 11 Jun 2024 16:33:22 +0300 Subject: [PATCH] Update db.rs Small typos resulting from renaming Db guard struct without changing the doc comments. --- src/db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.rs b/src/db.rs index b98d675..bf3a722 100644 --- a/src/db.rs +++ b/src/db.rs @@ -11,7 +11,7 @@ use tracing::debug; /// this struct is dropped. #[derive(Debug)] pub(crate) struct DbDropGuard { - /// The `Db` instance that will be shut down when this `DbHolder` struct + /// The `Db` instance that will be shut down when this `DbDropGuard` struct /// is dropped. db: Db, } @@ -97,7 +97,7 @@ struct Entry { } impl DbDropGuard { - /// Create a new `DbHolder`, wrapping a `Db` instance. When this is dropped + /// Create a new `DbDropGuard`, wrapping a `Db` instance. When this is dropped /// the `Db`'s purge task will be shut down. pub(crate) fn new() -> DbDropGuard { DbDropGuard { db: Db::new() }