From 44c165074b1b034799c6e1b95a871cde46755632 Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Sun, 21 Jul 2019 12:50:16 +0200 Subject: [PATCH] fix comment --- src/libcore/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index d842bf6d711..f76058302fc 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -1113,7 +1113,7 @@ impl<'b> BorrowRef<'b> { // `Ref`s, which is not good practice) None } else { - // Incrementing borrow can result in a reading value (< 0) in these cases: + // Incrementing borrow can result in a reading value (> 0) in these cases: // 1. It was = 0, i.e. it wasn't borrowed, and we are taking the first read borrow // 2. It was > 0 and < isize::max_value(), i.e. there were read borrows, and isize // is large enough to represent having one more read borrow