Commit 27c7b38
committed
docs: Add detailed comments explaining CalculateCheckDigits array indexing
- Clarifies that number[11-n] indexing is safe for 11-element arrays
- Documents the algorithm processes digits right-to-left with correct weights
- Addresses potential confusion about array bounds in code review1 parent 5b47f84 commit 27c7b38
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
0 commit comments