Skip to content

Commit f796112

Browse files
committed
Fix typos in unix/rwlock.rs
1 parent f883b0b commit f796112

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/unix/rwlock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ impl RWLock {
4545
// We roughly maintain the deadlocking behavior by panicking to ensure
4646
// that this lock acquisition does not succeed.
4747
//
48-
// We also check whether there this lock is already write locked. This
48+
// We also check whether this lock is already write locked. This
4949
// is only possible if it was write locked by the current thread and
5050
// the implementation allows recursive locking. The POSIX standard
51-
// doesn't require recursivly locking a rwlock to deadlock, but we can't
51+
// doesn't require recursively locking a rwlock to deadlock, but we can't
5252
// allow that because it could lead to aliasing issues.
5353
if r == libc::EAGAIN {
5454
panic!("rwlock maximum reader count exceeded");

0 commit comments

Comments
 (0)