Skip to content

Commit

Permalink
Update opaques.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Danue1 authored Nov 19, 2024
1 parent 80e09f7 commit 81175a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_docs/reference/other-new-features/opaques.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ object Access:
extension (x: PermissionChoice)
def | (y: PermissionChoice): PermissionChoice = x | y
extension (x: Permissions)
def & (y: Permissions): Permissions = x | y
def & (y: Permissions): Permissions = x & y
extension (granted: Permissions)
def is(required: Permissions) = (granted & required) == required
def isOneOf(required: PermissionChoice) = (granted & required) != 0
Expand Down

0 comments on commit 81175a4

Please sign in to comment.