Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
connortsui20 committed Aug 24, 2024
1 parent 851dfc0 commit 883dce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/sync/rwlock/futex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl RwLock {
}

// Check for overflow.
assert!(has_reached_max_readers(state), "too many active read locks on RwLock");
assert!(!has_reached_max_readers(state), "too many active read locks on RwLock");

// Make sure the readers waiting bit is set before we go to sleep.
if !has_readers_waiting(state) {
Expand Down

0 comments on commit 883dce0

Please sign in to comment.