Skip to content
Discussion options

You must be logged in to vote

The window is a sliding counter: analyze.RepetitionWindow keeps a cursor and only walks forward, so the pass is linear in the diff length instead of quadratic. For the 'why', policy.WithRule(name, err) wraps a failure in a RuleError that prints the rule by name - and it implements Unwrap, so errors.Is still matches the underlying cause.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alexander8708
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants