Skip to content

Fix documentation for Loc.LessThan() and other similar functions#4058

Open
bibainet wants to merge 2 commits intomicro-editor:masterfrom
bibainet:fixdoc
Open

Fix documentation for Loc.LessThan() and other similar functions#4058
bibainet wants to merge 2 commits intomicro-editor:masterfrom
bibainet:fixdoc

Conversation

@bibainet
Copy link
Copy Markdown

This PR includes small fixes in internal/buffer/loc.go.

  1. The documentation for Loc.LessThan() and other similar functions stated the opposite result of the comparison.
  2. Rewritten Loc.MoveLA(n): do not call util.Abs(n) in cycle, cleaner code with no additional variables.

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