Skip to content

std::fmt::Write methods error documentation #98861

Closed
@yoav-lavi

Description

@yoav-lavi

Location

std::fmt::Write

Summary

While opening this issue for Clippy, I noticed that many of the write_xyz methods have the following error description:

Errors

This function will return an instance of Error on error.

While I understand that this is due to the description being general for any implementation, this can seem tautological to someone that's not familiar with these methods and I thought perhaps it'd make sense to expand this a bit and add common scenarios / scenarios implemented by the standard library.

write_fmt seems to be missing this description in general.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-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