这是indexloc提供的服务,不要输入任何密码
Skip to content

Guidance for %g equivalent #9

@jason-s

Description

@jason-s

C/C++, Python, and Java all support the %g formatting specifier, which effectively selects between %e and %f as appropriate. I was surprised to learn that Rust does not.

If this library is trying to stay close to Rust std::fmt, I wouldn't change the implementation, but please provide some guidance in the documentation for those of us who are used to specifying %g. (either we can't do it, or we should consider a workaround = ???)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions