You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kimundi opened this issue
Feb 13, 2013
· 2 comments
Labels
A-lintArea: Lints (warnings about flaws in source code) such as unused_mut.C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Rusts % operator mimics C and C++ in that it's not modulo but remainder. This behavior should probably not be changed, however the documentation and naming convention should make it clear that it's the remainder operation.
The text was updated successfully, but these errors were encountered:
The % operator is now correctly called rem since that's the fast operation. The slower wrapper can be implemented on top of it and correctly called modulo since the method isn't taken anymore.
A-lintArea: Lints (warnings about flaws in source code) such as unused_mut.C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Rusts
%
operator mimics C and C++ in that it's not modulo but remainder. This behavior should probably not be changed, however the documentation and naming convention should make it clear that it's the remainder operation.The text was updated successfully, but these errors were encountered: