diff options
| author | Jonas Hietala <tradet.h@gmail.com> | 2014-07-28 16:03:01 +0200 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-07-29 15:43:52 -0700 |
| commit | 59a91280084347ced9a27c8d05a211f50fe90737 (patch) | |
| tree | 290d834d666b781d6c5411442915af6f132da9a6 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | ef7d3e13e258258ec427889d3b047f0b7fda33c7 (diff) | |
| download | rust-59a91280084347ced9a27c8d05a211f50fe90737.tar.gz rust-59a91280084347ced9a27c8d05a211f50fe90737.zip | |
Rename Integer trait `divides` to `is_multiple_of`.
It is being changed because the previous wording was ambiguous. `a.divides(b)` implied `a % b == 0` but it sounds like the other way around. `9.divides(&3) == true` but we might read that as "does 9 divide 3?". It has been renamed to sidestep the ambiguity. Work around the change by using `is_multiple_of` instead. [breaking-change]
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
