about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-18 21:18:46 +0200
committerGitHub <noreply@github.com>2022-10-18 21:18:46 +0200
commitd2644e538ccbf99e6aea79f60de3449e5c90c3d5 (patch)
tree7a32cbdb1f24d6566be40db2422ca175ab59dc26 /compiler/rustc_interface/src/errors.rs
parente94827e5b09b5b098ea10d0c57a84892fc73b5a7 (diff)
parent33421da030eeaf40ed0aca6bec41125c18ca34e4 (diff)
downloadrust-d2644e538ccbf99e6aea79f60de3449e5c90c3d5.tar.gz
rust-d2644e538ccbf99e6aea79f60de3449e5c90c3d5.zip
Rollup merge of #101889 - tspiteri:redoc-uint-adc-sbb, r=m-ou-se
doc: rewrite doc for uint::{carrying_add,borrowing_sub}

Reword the documentation for bigint helper methods `uint::{carrying_add,borrowing_sub}` (#85532).

The examples were also rewritten to demonstrate how the methods can be used in bignum arithmetic. No loops are used in the examples, but the variable names were chosen to include indices so that it is clear how this can be used in a loop if required.

Also, previously `carrying_add` had an example to say that if the input carry is false, the method is equivalent to `overflowing_add`. While the note was kept, the example was removed and an extra note was added to make sure this equivalence is not assumed for signed integers as well.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions