about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-19 03:27:01 +0200
committerGitHub <noreply@github.com>2023-08-19 03:27:01 +0200
commit8e0a8cdecbd80df4611f722058f3b7dc2dd2aa1a (patch)
treea34f4974577d7845d76dfedb187e906592b53b8f /compiler/rustc_resolve/src
parentd8bde4878a1efea6f18d63a0ee93ee25c90be551 (diff)
parent2c2163538246ad528e57e87db021d7528060aa65 (diff)
downloadrust-8e0a8cdecbd80df4611f722058f3b7dc2dd2aa1a.tar.gz
rust-8e0a8cdecbd80df4611f722058f3b7dc2dd2aa1a.zip
Rollup merge of #114977 - kpreid:modulo, r=thomcc
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_resolve/src')
0 files changed, 0 insertions, 0 deletions