Skip to content

Signs in fmt documenation #38677

Closed
Closed
@cbreeden

Description

@cbreeden

cf: https://doc.rust-lang.org/std/fmt/index.html#sign0

+ - This is intended for numeric types and indicates that the sign should always be printed. Positive signs are never printed by default, and the negative sign is only printed by default for the Signed trait. This flag indicates that the correct sign (+ or -) should always be printed.

This can't be accurate as there is no Signed trait anymore. Though, it's unclear to me if + is even allowed in formatting, so I don't feel comfortable modifying the docs here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions