diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2025-02-07 14:53:34 +0100 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2025-06-03 15:41:47 -0700 |
| commit | 252ad18415723a7485b0e2950f1b641109c9d4ef (patch) | |
| tree | 8c5e3c38903ca1cd910219b7cf9735ea53478e71 /tests/rustdoc-js-std/parser-errors.js | |
| parent | a124fb3cb7291d75872934f411d81fe298379ace (diff) | |
| download | rust-252ad18415723a7485b0e2950f1b641109c9d4ef.tar.gz rust-252ad18415723a7485b0e2950f1b641109c9d4ef.zip | |
Improve the documentation of `Display` and `FromStr`, and their interactions
In particular: - `Display` is not necessarily lossless - The output of `Display` might not be parseable by `FromStr`, and might not produce the same value if it is. - Calling `.parse()` on the output of `Display` is usually a mistake unless a type's documented output and input formats match. - The input formats accepted by `FromStr` depend on the type.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
