Skip to content

Officially rename '%' from mod() into rem() in traits and docs #4917

Closed
@Kimundi

Description

@Kimundi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions