Skip to content

Commit 2d13385

Browse files
committed
Clarify self in comments
1 parent 2f757db commit 2d13385

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/namespace/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func Nil() *core.SetOperation_Child {
203203
}
204204
}
205205

206-
// Self creates a child for a set operation that references the subject itself.
206+
// Self creates a child for a set operation that references the resource itself as a subject.
207207
func Self() *core.SetOperation_Child {
208208
return &core.SetOperation_Child{
209209
ChildType: &core.SetOperation_Child_XSelf{},

pkg/proto/core/v1/core.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/internal/core/v1/core.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ message SetOperation {
422422
message This {}
423423
message Nil {}
424424

425-
// `self` refers to the subject in a permission computation.
425+
// `self` refers to the resource-as-a-subject in a permission computation.
426426
message Self {}
427427

428428
oneof child_type {

0 commit comments

Comments
 (0)