Skip to content

Commit 98bd279

Browse files
committed
fmt
1 parent b87f367 commit 98bd279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/std/src/sync/poison/rwlock.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ impl<'a, T: ?Sized> RwLockReadGuard<'a, T> {
924924
pub fn try_upgrade<T>(orig: Self) -> Result<RwLockWriteGuard<'a, T>, RwLockReadGuard<'a, T>> {
925925
read_lock = orig.inner_lock;
926926

927-
// don't call the constructor
927+
// don't call the destructor
928928
forget(read_lock);
929929

930930
// SAFETY: We have ownership of the read guard, so it must be in read mode already

0 commit comments

Comments
 (0)