about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2019-07-21 12:50:16 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2019-07-21 12:50:16 +0200
commit44c165074b1b034799c6e1b95a871cde46755632 (patch)
tree56294be7f5d7f93679c5b769e2bd0758072c3428
parentc7928f5af0b9dc7b042d4c390a5a5381cc53de9a (diff)
downloadrust-44c165074b1b034799c6e1b95a871cde46755632.tar.gz
rust-44c165074b1b034799c6e1b95a871cde46755632.zip
fix comment
-rw-r--r--src/libcore/cell.rs2
1 files changed, 1 insertions, 1 deletions
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