Skip to content

Commit 44c1650

Browse files
committed
fix comment
1 parent c7928f5 commit 44c1650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/libcore/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ impl<'b> BorrowRef<'b> {
11131113
// `Ref`s, which is not good practice)
11141114
None
11151115
} else {
1116-
// Incrementing borrow can result in a reading value (< 0) in these cases:
1116+
// Incrementing borrow can result in a reading value (> 0) in these cases:
11171117
// 1. It was = 0, i.e. it wasn't borrowed, and we are taking the first read borrow
11181118
// 2. It was > 0 and < isize::max_value(), i.e. there were read borrows, and isize
11191119
// is large enough to represent having one more read borrow

0 commit comments

Comments
 (0)