We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd903f commit 0c5f968Copy full SHA for 0c5f968
src/interoperability.md
@@ -269,6 +269,12 @@ impl Error for DoError { /* ... */ }
269
The error message given by the `Display` representation of an error type should
270
be lowercase without trailing punctuation, and typically concise.
271
272
+The message given by [`Error::description()`] does not matter. Users should
273
+always use `Display` instead of `description()` to print the error. A low-effort
274
+description like `"JSON error"` is sufficient.
275
+
276
+[`Error::description()`]: https://doc.rust-lang.org/std/error/trait.Error.html#tymethod.description
277
278
### Examples from the standard library
279
280
- [`ParseBoolError`] is returned when failing to parse a bool from a string.
0 commit comments