Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update char::escape_debug_ext to handle different escapes in strings and chars #83079

Merged
merged 1 commit into from
Mar 26, 2021

Commits on Mar 26, 2021

  1. Update char::escape_debug_ext to handle different escapes in strings …

    …vs. chars
    
    Fixes rust-lang#83046
    
    The program
    
        fn main() {
            println!("{:?}", '"');
            println!("{:?}", "'");
        }
    
    would previously print
    
        '\"'
        "\'"
    
    With this patch it now prints:
    
        '"'
        "'"
    osa1 committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    819247f View commit details
    Browse the repository at this point in the history