about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorKevin Reid <kpreid@switchb.org>2023-08-18 08:09:00 -0700
committerKevin Reid <kpreid@switchb.org>2023-08-18 12:28:27 -0700
commit2c2163538246ad528e57e87db021d7528060aa65 (patch)
tree3e219a8f620051d57a272d6ddce25721a4794355 /compiler/rustc_codegen_llvm/src
parentb9177c0adb1ccae97145569c954696a4c680f5b3 (diff)
downloadrust-2c2163538246ad528e57e87db021d7528060aa65.tar.gz
rust-2c2163538246ad528e57e87db021d7528060aa65.zip
Add `modulo` and `mod` as doc aliases for `rem_euclid`.
When I was learning Rust I looked for “a modulo function” and couldn’t
find one, so thought I had to write my own; it wasn't at all obvious
that a function with “rem” in the name was the function I wanted.
Hopefully this will save the next learner from that.

However, it does have the disadvantage that the top results in rustdoc
for “mod” are now these aliases instead of the Rust keyword, which
probably isn't ideal.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions