From cd19ea1e2a06045220a9a3d3d444b220b0d7ee8c Mon Sep 17 00:00:00 2001 From: Christopher Berner Date: Thu, 21 Mar 2024 13:52:55 -0700 Subject: [PATCH] Update TODO with explanatory comment --- src/table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/table.rs b/src/table.rs index 3e9da467..7d2cbad5 100644 --- a/src/table.rs +++ b/src/table.rs @@ -598,7 +598,7 @@ impl< pub struct Range<'a, K: Key + 'static, V: Value + 'static> { inner: BtreeRangeIter, _transaction_guard: Arc, - // TODO: replace with TransactionGuard? + // This lifetime is here so that `&` can be held on `Table` preventing concurrent mutation _lifetime: PhantomData<&'a ()>, }