Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-barbieri committed Jul 21, 2019
1 parent c7928f5 commit 44c1650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44c1650

Please sign in to comment.