Skip to content

Fix doc comment typos and gitignore MCP server logs #none - #16

Merged
freeformz merged 1 commit into
mainfrom
fix-doc-typos
Aug 4, 2026
Merged

Fix doc comment typos and gitignore MCP server logs #none#16
freeformz merged 1 commit into
mainfrom
fix-doc-typos

Conversation

@freeformz

Copy link
Copy Markdown
Owner

Summary

Docs-only cleanup found during a bug hunt over seq.go (no behavioral bugs turned up — the logic checked out against a differential edge-case harness covering early breaks at every position, empty/negative/oversized inputs, chunk/window aliasing, and iterator reusability).

  • Remove a stray closing brace in the KV doc example — as written, the example didn't compile and renders on pkg.go.dev
  • Fix "an the" typo in the CompactFunc doc
  • Fix "starts of the sequence" → "start" in Drop and DropKV
  • Align Min's "built in" wording with Max's "builtin"
  • Add logs/ to .gitignore: the git MCP server writes its logs into the working directory, and they were showing up as untracked files

Testing

  • go vet ./... clean
  • staticcheck ./... clean
  • go test -race -count=2 ./... passes for both packages
  • gofmt -l clean

Tagged none — docs and tooling only, no release.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Rvh5bZ6e5G62UApzeEd6gB

Fix five doc-comment defects in seq.go: a stray closing brace in the
KV usage example (which rendered broken on pkg.go.dev), an 'an the'
typo in CompactFunc, 'starts of the sequence' in Drop and DropKV, and
'built in' vs 'builtin' inconsistency between Min and Max.

Also ignore logs/, which the git-mcp-server writes into the working
directory, so it can't be committed by accident.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rvh5bZ6e5G62UApzeEd6gB
@freeformz
freeformz marked this pull request as ready for review August 4, 2026 18:18
Copilot AI lite review requested due to automatic review settings August 4, 2026 18:18

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.

Pull request overview

Docs/tooling-only cleanup for the seq Go library: it corrects several doc comment typos (including a malformed snippet) and updates .gitignore to avoid noise from the git MCP server’s local log output.

Changes:

  • Fix a syntax error in the KV doc comment example (remove stray }) so the rendered snippet is no longer malformed.
  • Correct multiple documentation typos/wording issues (Min, CompactFunc, Drop, DropKV).
  • Ignore logs/ in .gitignore to prevent MCP server log directories from showing up as untracked files.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
seq.go Documentation-only fixes to examples and doc comments (no code behavior changes).
.gitignore Ignore logs/ directory created by git MCP server logs to reduce untracked-file noise.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@freeformz
freeformz merged commit 5b15b64 into main Aug 4, 2026
12 checks passed
@freeformz
freeformz deleted the fix-doc-typos branch August 4, 2026 18:21
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