Commit 2651a33
fix: add explicit panic for Last on empty slice (#41)
- Add length check with explicit panic message
- Update documentation to note panic behavior
- Tests already exist and pass
Resolves Issue 13
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent d622c8c commit 2651a33
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
0 commit comments