about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-24 11:08:19 +0100
committerGitHub <noreply@github.com>2024-11-24 11:08:19 +0100
commit3c52c9b483f55596e6579a125b7087a5e7e506e1 (patch)
tree670831d97ac7cc9ddd0b982be69c955d85bc4002 /compiler/rustc_codegen_llvm/src
parent4ad97f2a9a0971da3ae822a144cee3ef74cb48ba (diff)
parent67bdc9b33710c21b4e19abd3e2b8aa95c1ccfaed (diff)
downloadrust-3c52c9b483f55596e6579a125b7087a5e7e506e1.tar.gz
rust-3c52c9b483f55596e6579a125b7087a5e7e506e1.zip
Rollup merge of #133301 - GuillaumeGomez:add-example-wrapping-neg, r=workingjubilee
Add code example for `wrapping_neg` method for signed integers

With this example, we make it obvious that `wrapping_neg` works both ways (neg to pos and pos to neg).

r? `@workingjubilee`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions