Commit graph

3 commits

Author SHA1 Message Date
Jonas Hietala
59a9128008 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]
2014-07-29 15:43:52 -07:00
Jonas Hietala
5f843eea22 Examples for Integer trait methods. 2014-07-16 16:17:57 +02:00
Adolfo Ochagavía
3ca00ec0db Moved integer trait and functions to submodule 2014-06-09 16:36:40 +02:00