File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -269,9 +269,8 @@ impl Error for DoError { /* ... */ }
269
269
The error message given by the ` Display ` representation of an error type should
270
270
be lowercase without trailing punctuation, and typically concise.
271
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.
272
+ [ ` Error::description() ` ] should not be implemented. It has been deprecated and users should
273
+ always use ` Display ` instead of ` description() ` to print the error.
275
274
276
275
[ `Error::description()` ] : https://doc.rust-lang.org/std/error/trait.Error.html#tymethod.description
277
276
You can’t perform that action at this time.
0 commit comments