Skip to content

x..(y+1) reads better as x...y #329

Closed
@llogiq

Description

@llogiq

Once we have inclusive ranges (which won't be too long; the RFC has recently been accepted), I think we should advise people to use them.

Perhaps we could also check for x...(y-1) while we're at it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsT-ASTType: Requires working with the ASTgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions