|
340 | 340 | "section": "`u8` arithmetic", |
341 | 341 | "input_type": "u8, u8", |
342 | 342 | "output_type": "Option<u8>", |
343 | | - "description": "Subtract the second `u8` value from the first. Return `Some` of the difference, or `None` if the result would underflow `u8`." |
| 343 | + "description": "Subtract the second `u8` value from the first. Return `Some` of the difference, or `None` if the result would overflow `u8`." |
344 | 344 | }, |
345 | 345 | { |
346 | 346 | "simplicityhl_name": "safe_sub_8", |
347 | 347 | "section": "`u8` arithmetic", |
348 | 348 | "input_type": "u8, u8", |
349 | 349 | "output_type": "u8", |
350 | | - "description": "Subtract the second `u8` value from the first.\n\n## Panics\nPanics if the result would underflow `u8`." |
| 350 | + "description": "Subtract the second `u8` value from the first.\n\n## Panics\nPanics if the result would overflow `u8`." |
351 | 351 | }, |
352 | 352 | { |
353 | 353 | "simplicityhl_name": "checked_mul_8", |
|
466 | 466 | "section": "`u16` arithmetic", |
467 | 467 | "input_type": "u16, u16", |
468 | 468 | "output_type": "Option<u16>", |
469 | | - "description": "Subtract the second `u16` value from the first. Return `Some` of the difference, or `None` if the result would underflow `u16`." |
| 469 | + "description": "Subtract the second `u16` value from the first. Return `Some` of the difference, or `None` if the result would overflow `u16`." |
470 | 470 | }, |
471 | 471 | { |
472 | 472 | "simplicityhl_name": "safe_sub_16", |
473 | 473 | "section": "`u16` arithmetic", |
474 | 474 | "input_type": "u16, u16", |
475 | 475 | "output_type": "u16", |
476 | | - "description": "Subtract the second `u16` value from the first.\n\n## Panics\nPanics if the result would underflow `u16`." |
| 476 | + "description": "Subtract the second `u16` value from the first.\n\n## Panics\nPanics if the result would overflow `u16`." |
477 | 477 | }, |
478 | 478 | { |
479 | 479 | "simplicityhl_name": "checked_mul_16", |
|
592 | 592 | "section": "`u32` arithmetic", |
593 | 593 | "input_type": "u32, u32", |
594 | 594 | "output_type": "Option<u32>", |
595 | | - "description": "Subtract the second `u32` value from the first. Return `Some` of the difference, or `None` if the result would underflow `u32`." |
| 595 | + "description": "Subtract the second `u32` value from the first. Return `Some` of the difference, or `None` if the result would overflow `u32`." |
596 | 596 | }, |
597 | 597 | { |
598 | 598 | "simplicityhl_name": "safe_sub_32", |
599 | 599 | "section": "`u32` arithmetic", |
600 | 600 | "input_type": "u32, u32", |
601 | 601 | "output_type": "u32", |
602 | | - "description": "Subtract the second `u32` value from the first.\n\n## Panics\nPanics if the result would underflow `u32`." |
| 602 | + "description": "Subtract the second `u32` value from the first.\n\n## Panics\nPanics if the result would overflow `u32`." |
603 | 603 | }, |
604 | 604 | { |
605 | 605 | "simplicityhl_name": "checked_mul_32", |
|
725 | 725 | "section": "`u64` arithmetic", |
726 | 726 | "input_type": "u64, u64", |
727 | 727 | "output_type": "Option<u64>", |
728 | | - "description": "Subtract the second `u64` value from the first. Return `Some` of the difference, or `None` if the result would underflow `u64`." |
| 728 | + "description": "Subtract the second `u64` value from the first. Return `Some` of the difference, or `None` if the result would overflow `u64`." |
729 | 729 | }, |
730 | 730 | { |
731 | 731 | "simplicityhl_name": "safe_sub_64", |
732 | 732 | "section": "`u64` arithmetic", |
733 | 733 | "input_type": "u64, u64", |
734 | 734 | "output_type": "u64", |
735 | | - "description": "Subtract the second `u64` value from the first.\n\n## Panics\nPanics if the result would underflow `u64`." |
| 735 | + "description": "Subtract the second `u64` value from the first.\n\n## Panics\nPanics if the result would overflow `u64`." |
736 | 736 | }, |
737 | 737 | { |
738 | 738 | "simplicityhl_name": "checked_mul_64", |
|
886 | 886 | "section": "`u128` arithmetic", |
887 | 887 | "input_type": "u128, u128", |
888 | 888 | "output_type": "Option<u128>", |
889 | | - "description": "Subtract the second `u128` value from the first. Return `Some` of the difference, or `None` if the result would underflow `u128`." |
| 889 | + "description": "Subtract the second `u128` value from the first. Return `Some` of the difference, or `None` if the result would overflow `u128`." |
890 | 890 | }, |
891 | 891 | { |
892 | 892 | "simplicityhl_name": "safe_sub_128", |
893 | 893 | "section": "`u128` arithmetic", |
894 | 894 | "input_type": "u128, u128", |
895 | 895 | "output_type": "u128", |
896 | | - "description": "Subtract the second `u128` value from the first.\n\n## Panics\nPanics if the result would underflow `u128`." |
| 896 | + "description": "Subtract the second `u128` value from the first.\n\n## Panics\nPanics if the result would overflow `u128`." |
897 | 897 | }, |
898 | 898 | { |
899 | 899 | "simplicityhl_name": "mul_128", |
|
1173 | 1173 | "section": "`u256` arithmetic", |
1174 | 1174 | "input_type": "u256, u256", |
1175 | 1175 | "output_type": "Option<u256>", |
1176 | | - "description": "Subtract the second `u256` value from the first. Return `Some` of the difference, or `None` if the result would underflow `u256`." |
| 1176 | + "description": "Subtract the second `u256` value from the first. Return `Some` of the difference, or `None` if the result would overflow `u256`." |
1177 | 1177 | }, |
1178 | 1178 | { |
1179 | 1179 | "simplicityhl_name": "safe_sub_256", |
1180 | 1180 | "section": "`u256` arithmetic", |
1181 | 1181 | "input_type": "u256, u256", |
1182 | 1182 | "output_type": "u256", |
1183 | | - "description": "Subtract the second `u256` value from the first.\n\n## Panics\nPanics if the result would underflow `u256`." |
| 1183 | + "description": "Subtract the second `u256` value from the first.\n\n## Panics\nPanics if the result would overflow `u256`." |
1184 | 1184 | }, |
1185 | 1185 | { |
1186 | 1186 | "simplicityhl_name": "mul_256", |
|
0 commit comments