Skip to content

Fix grammatical error in AddUserToContext doc comment - #53

Merged
maragubot merged 1 commit into
mainfrom
garden/fix-adduser-godoc-typo
Jun 26, 2026
Merged

Fix grammatical error in AddUserToContext doc comment#53
maragubot merged 1 commit into
mainfrom
garden/fix-adduser-godoc-typo

Conversation

@maragubot

Copy link
Copy Markdown
Collaborator

What was found

The godoc comment on AddUserToContext in http/auth.go contained a grammatical error -- a leftover word:

// AddUserToContext is [gluehttp.Middleware] to get add an authenticated user to the request context, ...

"to get add" is not valid -- the word get is an editing artifact.

What was fixed

Removed the leftover get so the comment reads "to add an authenticated user to the request context". This matches what the function does (and its name): it puts an authenticated user into the request context. One word removed; nothing else touched. Build and go vet pass.

Review notes

Clean review -- no concerns raised. Two competing reviewers confirmed the fix is correct, minimal, and that "add" (not "get") is the right correction. Both noted pre-existing stylistic nits in the same line (e.g. "is [Middleware] to add" could read "returns a [Middleware] that adds", and "request context" appears twice) but these predate this change and were intentionally left out of scope to keep the fix minimal.

The godoc comment read "to get add an authenticated user"; the leftover
`get` is removed so it reads "to add an authenticated user".
@maragubot
maragubot merged commit 70f0ffd into main Jun 26, 2026
5 checks passed
@maragubot
maragubot deleted the garden/fix-adduser-godoc-typo branch June 26, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant