Skip to content

Commit

Permalink
Update db.rs (#143)
Browse files Browse the repository at this point in the history
Small typos resulting from renaming Db guard struct without changing the doc comments.
  • Loading branch information
bn-l authored Jun 13, 2024
1 parent 5673e33 commit ab7353b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down Expand Up @@ -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() }
Expand Down

0 comments on commit ab7353b

Please sign in to comment.