Skip to content

FloatToInit docs incorrect symbol: round_unchecked_to - should be to_int_unchecked #82709

Closed
@peter-lyons-kehl

Description

@peter-lyons-kehl

https://doc.rust-lang.org/nightly/std/convert/trait.FloatToInt.html mentions a non-existing symbol: round_unchecked_to. The correct one is: to_int_unchecked. (There is no word round anywhere in library/core/src/convert/num.rs.)

Notes

  • Even though this is a Docs defect, I'm not mentioning steveklabnik, since I don't believe this needs his attention.
  • based on my grep search, the current master doesn't refer to the incorrect reference anywhere else.
  • I'll provide a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.T-libs-apiRelevant to the library API 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