]> git.lizzy.rs Git - rust.git/commitdiff
fix comment
authorLuca Barbieri <luca@luca-barbieri.com>
Sun, 21 Jul 2019 10:50:16 +0000 (12:50 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Sun, 21 Jul 2019 10:50:16 +0000 (12:50 +0200)
src/libcore/cell.rs

index d842bf6d71101ebbb4d3aff194040fab1b925529..f76058302fc143018c24e443cf680dd72bdab583 100644 (file)
@@ -1113,7 +1113,7 @@ fn new(borrow: &'b Cell<BorrowFlag>) -> Option<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