summaryrefslogtreecommitdiff
path: root/src/collection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/collection.rs')
-rw-r--r--src/collection.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/collection.rs b/src/collection.rs
index 1253a0f..c6cbe2d 100644
--- a/src/collection.rs
+++ b/src/collection.rs
@@ -12,10 +12,10 @@ mod guard;
/// important that no duplicate locks are included within.
#[derive(Debug, Clone, Copy)]
pub struct LockCollection<L> {
- collection: L,
+ data: L,
}
-/// A guard for a generic [`Lockable`] type.
+/// A RAII guard for a generic [`Lockable`] type.
pub struct LockGuard<'a, 'key: 'a, L: Lockable<'a>, Key: Keyable + 'key> {
guard: L::Output,
key: Key,