Skip to content

Commit 17ea3c3

Browse files
committed
Update comments
1 parent 425cec0 commit 17ea3c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

coderd/rbac/authz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
// support unavailable to the user. Eg: Scope to a single resource.
2828
type ExpandableRoles interface {
2929
Expand() ([]Role, error)
30-
// Names is fo logging and tracing purposes, we want to know the human
30+
// Names is for logging and tracing purposes, we want to know the human
3131
// names of the expanded roles.
3232
Names() []string
3333
}

coderd/rbac/builtin.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const (
2020
)
2121

2222
// RoleNames is a list of user assignable role names. The role names must be
23-
// in the builtInRoles map.
23+
// in the builtInRoles map. Any non-user assignable roles will generate an
24+
// error on Expand.
2425
type RoleNames []string
2526

2627
func (names RoleNames) Expand() ([]Role, error) {

0 commit comments

Comments
 (0)