Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 788 Bytes

example.md

File metadata and controls

15 lines (10 loc) · 788 Bytes

Learning Log — format example

This folder is just documentation. Your real, live logs land in a global location (~/.claude/learning/, or the equivalent for whatever tool you're using — see skills/coach/SKILL.md's Learning Log section), not inside this repo. This file exists so contributors and /coach study both have a concrete reference for the expected entry shape.


Off-by-one in slice bounds

Slicing arr[i:i+n] is safe even when i+n overruns the array — Python/most slice semantics clamp silently instead of raising. That's the opposite of index access (arr[i+n]), which throws. Worth checking which one you actually meant when a loop reads one element short.

arr = [1, 2, 3]
arr[1:10]   # -> [2, 3], no error
arr[10]     # -> IndexError