Skip to content

rustdoc code wrapping is sometimes too eager #58226

Closed
@euclio

Description

@euclio

Documenting the following file:

use std::fmt::Debug;

pub fn foo() -> impl Debug {}

The source displays as:

screen shot 2019-02-06 at 9 26 51 am

I expected the source to wrap at around 80 characters.

I'm working on a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions