PR Review Pass
Reviews a diff for correctness, edge cases, and readability.
Review this {{language}} diff as if you were leaving PR comments. Check for: correctness, missed edge cases, naming, and anything that will confuse the next person who reads it. Skip nitpicks about formatting a linter would catch.
Diff:
{{code}}