Skip to content

docs(viewport): fix the misspelled highlight method links - #1089

Open
farisbasha wants to merge 1 commit into
charmbracelet:mainfrom
farisbasha:docs-viewport-highlight-links
Open

farisbasha wants to merge 1 commit into
charmbracelet:mainfrom
farisbasha:docs-viewport-highlight-links

Conversation

@farisbasha

Copy link
Copy Markdown

The doc comments on viewport.Model.HighlightStyle and SelectedHighlightStyle link to [SetHighligths], [HightlightNext] and [HihglightPrevious]. Those names are misspelled and, being methods, also need the Model. prefix, so none of the links resolve on pkg.go.dev. The methods are SetHighlights, HighlightNext and HighlightPrevious (viewport/viewport.go).

The links are now [Model.SetHighlights], [Model.HighlightNext] and [Model.HighlightPrevious]. Comment-only change; gofmt -l is clean.

AI disclosure: prepared with an AI coding assistant (Claude).

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