]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #107389 - zvavybir:master, r=estebank
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 1 Feb 2023 04:54:37 +0000 (05:54 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Feb 2023 04:54:37 +0000 (05:54 +0100)
Fixing confusion between mod and remainder

Like many programming languages, rust too confuses remainder and modulus.  The `%` operator and the associated `Rem` trait is (as the trait name suggests) the remainder, but since most people are linguistically more familiar with the modulus the documentation sometimes claims otherwise.  This PR tries to fix this problem in rustc.


Trivial merge