Skip to content

Commit 5450282

Browse files
bugpartyCopilot
andauthored
Update .github/copilot-instructions.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5d93a0c commit 5450282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ When adding or modifying functionality:
8989

9090
- Use SFINAE with `typename std::enable_if<condition, int>::type* = nullptr` pattern (e.g., `typename std::enable_if<(!Z), int>::type* = nullptr` for non-const, `typename std::enable_if<(Z), int>::type* = nullptr` for const)
9191
- Iterator comparisons based on `count()` not `index()`
92-
- Modulo arithmetic for circular indexing: `index_ = (index_ + 1) % N`
92+
- Modulo arithmetic for circular indexing: `index_ = ++index_ % N`
9393
- Template specialization for const/non-const iterators
9494

9595
## What NOT to Do

0 commit comments

Comments
 (0)