Skip to content

Commit

Permalink
Fix typos in unix/rwlock.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
apasel422 committed Aug 20, 2016
1 parent f883b0b commit f796112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/sys/unix/rwlock.rs
Expand Up @@ -45,10 +45,10 @@ impl RWLock {
// We roughly maintain the deadlocking behavior by panicking to ensure
// that this lock acquisition does not succeed.
//
// We also check whether there this lock is already write locked. This
// We also check whether this lock is already write locked. This
// is only possible if it was write locked by the current thread and
// the implementation allows recursive locking. The POSIX standard
// doesn't require recursivly locking a rwlock to deadlock, but we can't
// doesn't require recursively locking a rwlock to deadlock, but we can't
// allow that because it could lead to aliasing issues.
if r == libc::EAGAIN {
panic!("rwlock maximum reader count exceeded");
Expand Down

0 comments on commit f796112

Please sign in to comment.