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>2023-10-15 11:37:23 +0200
committerGitHub <noreply@github.com>2023-10-15 11:37:23 +0200
commite86e6b45e70cc30a9d1166ebc8ba7da05b9439d4 (patch)
treef141649b220b479e07af263808333dbac91c314f /compiler/rustc_codegen_llvm/src
parentb0fedc07ce52a7647272a34fadbf4c5585a79c0b (diff)
parente15e9a673e6770ae35d2d738aaaff304db9e5616 (diff)
downloadrust-e86e6b45e70cc30a9d1166ebc8ba7da05b9439d4.tar.gz
rust-e86e6b45e70cc30a9d1166ebc8ba7da05b9439d4.zip
Rollup merge of #116594 - tae-soo-kim:convert-tryfrom-doc, r=scottmcm
Fix `std::convert::TryFrom` doc

Original text:

> truncating the [i64](https://doc.rust-lang.org/std/primitive.i64.html) to an [i32](https://doc.rust-lang.org/std/primitive.i32.html) (essentially giving the [i64](https://doc.rust-lang.org/std/primitive.i64.html)’s value modulo [i32::MAX](https://doc.rust-lang.org/std/primitive.i32.html#associatedconstant.MAX))

This can't be true, because `i32::MAX` is an odd number. The correct value seems `(i32::MAX + 1) * 2`, but this is complicated and distracting, and I suggest removing the parentheses entirely.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions