Commit da050af
docs: state leaving the state unchanged on failure as a requirement
The function's doc comment presented it as a consequence of performing the
withdrawal before the refund, and did not mention it at all where the error is
documented. State the requirement first and the order as the means, in both the
function's and the test's doc comment, without spelling out what the callers do
with it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 0b61445 commit da050af
2 files changed
Lines changed: 8 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
893 | | - | |
894 | | - | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
895 | 896 | | |
896 | 897 | | |
897 | 898 | | |
898 | | - | |
| 899 | + | |
| 900 | + | |
899 | 901 | | |
900 | 902 | | |
901 | 903 | | |
| |||
Lines changed: 3 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
571 | 561 | | |
572 | 562 | | |
573 | 563 | | |
| |||
0 commit comments