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

Avoid extraneous space between visibility kw and ident for statics #77920

Merged
merged 2 commits into from
Oct 23, 2020

Commits on Oct 13, 2020

  1. Avoid extraneous space between visibility kw and ident for statics

    Today, given a static like `static mut FOO: usize = 1`, rustdoc would
    emit `static mut  FOO: usize = 1`, as it emits both the mutability kw
    with a space and reserves a space after the mutability kw. This patch
    fixes that misformatting.
    
    This patch also adds some tests for emit of other statics, as I could
    not find an existing test devoted to statics.
    ayazhafiz committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    abfbd1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e60072f View commit details
    Browse the repository at this point in the history