Skip to content

Recommend replacing ones with L's in functions like println!() #13677

Description

@mdinger
fn main()
{
    print1n!("{}", 3);
}

Give a helpful tip to point out the "one" should be an "L" in keywords like this. Pointing out zeros for O or o might also be good.

It was suggested I try to fix this which I may in a few days.

A better error message might be like:

# print1n!("{}", 3);
       ^
If you meant `println!()`, this is the wrong character.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions