From 419efb88f963909b39724b72cb55ef69865596e8 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Wed, 19 Jan 2022 13:37:19 -0800 Subject: [PATCH] working_copy: update stale comment on `LockedWorkingCopy` The recent refactoring introducing `WorkgingCopy::start_mutation()` (25d19e8a65b8) made this comment incorrect. --- lib/src/working_copy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/working_copy.rs b/lib/src/working_copy.rs index 72f1a15be..c5f9103b5 100644 --- a/lib/src/working_copy.rs +++ b/lib/src/working_copy.rs @@ -851,8 +851,8 @@ impl WorkingCopy { } } -// A working copy that's locked on disk. The tree state has already been -// updated. +/// A working copy that's locked on disk. The lock is held until you call +/// `finish()` or `discard()`. pub struct LockedWorkingCopy<'a> { wc: &'a mut WorkingCopy, #[allow(dead_code)]