File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ pub enum Permission {
40
40
Unique ,
41
41
/// Grants shared mutable access.
42
42
SharedReadWrite ,
43
- /// Greants shared read-only access.
43
+ /// Grants shared read-only access.
44
44
SharedReadOnly ,
45
45
/// Grants no access, but separates two groups of SharedReadWrite so they are not
46
46
/// all considered mutually compatible.
@@ -202,7 +202,7 @@ impl Default for Tag {
202
202
impl Permission {
203
203
/// This defines for a given permission, whether it permits the given kind of access.
204
204
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.
206
206
self != Permission :: Disabled && ( access == AccessKind :: Read || self != Permission :: SharedReadOnly )
207
207
}
208
208
}
You can’t perform that action at this time.
0 commit comments