Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6619ff

Browse files
committed
Improve comments from self-review
1 parent 292d9f6 commit e6619ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/userauth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ type OIDCConfig struct {
214214
httpmw.OAuth2Config
215215

216216
Verifier *oidc.IDTokenVerifier
217-
// EmailDomain is an optional domain to require when authenticating.
217+
// EmailDomain is the domain to enforce when a user authenticates.
218218
EmailDomain string
219219
AllowSignups bool
220220
}

coderd/username/username.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var (
1212
replace = regexp.MustCompile("[^a-zA-Z0-9-]*")
1313
)
1414

15-
// Valid returns whether the input string is a valid username or not.
15+
// Valid returns whether the input string is a valid username.
1616
func Valid(str string) bool {
1717
if len(str) > 32 {
1818
return false

0 commit comments

Comments
 (0)