Skip to content

[core] fix: correct four stale symbol names in doc comments - #12084

Open
simpleqt wants to merge 1 commit into
mudler:masterfrom
simpleqt:fix/stale-symbol-comments
Open

simpleqt wants to merge 1 commit into
mudler:masterfrom
simpleqt:fix/stale-symbol-comments

Conversation

@simpleqt

Copy link
Copy Markdown
Contributor

What

Four doc comments still reference pre-rename symbols that no longer exist anywhere in the repo:

  • core/http/endpoints/localai/toggle_model.go:14: ToggleModelEndpointToggleStateModelEndpoint
  • core/schema/message.go:74: MessagesToProtoToProto
  • core/services/galleryop/service.go:525: newUserCancellableContextNewUserCancellableContext (the same comment block already used the new name a few lines below)
  • pkg/sound/int16.go:16: calculateRMS16CalculateRMS16

Why

Each old name survives only in its comment (verified with repo-wide grep), so godoc and code navigation point contributors at symbols that don't exist.

Comment-only change, no behavior impact.

  • Yes, I signed my commits.

- toggle_model.go: the comment named ToggleModelEndpoint; the function
  is ToggleStateModelEndpoint.
- message.go: the comment named MessagesToProto; the method is
  (Messages).ToProto.
- galleryop/service.go: the doc comment used the pre-export name
  newUserCancellableContext; the function is NewUserCancellableContext.
- pkg/sound/int16.go: calculateRMS16 -> CalculateRMS16.

Each old name appears nowhere else in the repo (verified with
repo-wide grep).

Assisted-by: ZCode:GLM
Copilot AI lite review requested due to automatic review settings September 16, 2026 17:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants