Skip to content

Commit f761450

Browse files
authored
Merge pull request #732 from RalfJung/stacked-borrows-2
fix typo
2 parents 78210a5 + 5c54a58 commit f761450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stacked_borrows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub enum Permission {
4040
Unique,
4141
/// Grants shared mutable access.
4242
SharedReadWrite,
43-
/// Greants shared read-only access.
43+
/// Grants shared read-only access.
4444
SharedReadOnly,
4545
/// Grants no access, but separates two groups of SharedReadWrite so they are not
4646
/// all considered mutually compatible.
@@ -202,7 +202,7 @@ impl Default for Tag {
202202
impl Permission {
203203
/// This defines for a given permission, whether it permits the given kind of access.
204204
fn grants(self, access: AccessKind) -> bool {
205-
// Disabled grants nother. Otherwise, all items grant read access, and except for SharedReadOnly they grant write access.
205+
// Disabled grants nothing. Otherwise, all items grant read access, and except for SharedReadOnly they grant write access.
206206
self != Permission::Disabled && (access == AccessKind::Read || self != Permission::SharedReadOnly)
207207
}
208208
}

0 commit comments

Comments
 (0)