From 81175a4881d04ba8051362c7e69e79a44314577d Mon Sep 17 00:00:00 2001 From: Danuel Date: Tue, 19 Nov 2024 23:07:59 +0900 Subject: [PATCH] Update opaques.md --- docs/_docs/reference/other-new-features/opaques.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_docs/reference/other-new-features/opaques.md b/docs/_docs/reference/other-new-features/opaques.md index 567b51098016..823427282f04 100644 --- a/docs/_docs/reference/other-new-features/opaques.md +++ b/docs/_docs/reference/other-new-features/opaques.md @@ -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