-
Notifications
You must be signed in to change notification settings - Fork 965
Add helpful message to division-by-zero panic #739
Copy link
Copy link
Closed
Labels
P-lowLow priorityLow priorityenhancementgood first issuetrivialObvious, easy and quick to review (few lines or doc-only...)Obvious, easy and quick to review (few lines or doc-only...)
Description
Here:
Line 141 in dd15ce4
| assert!(your_bits != 0); |
"your_bits != 0" is not a clear message. We can improve it by changing the line to assert!(your_bits != 0, "attempted to divide {} by zero", self);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P-lowLow priorityLow priorityenhancementgood first issuetrivialObvious, easy and quick to review (few lines or doc-only...)Obvious, easy and quick to review (few lines or doc-only...)