Skip to content

Commit 057dc09

Browse files
committed
add some more summary from pr discussion
1 parent 37cbc7d commit 057dc09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/io/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct Custom {
147147
/// In application code, use `match` for the `ErrorKind` values you are expecting; use `_` to match
148148
/// "all other errors".
149149
///
150-
/// In comprehensive and thorough tests that want to verify that a test doesn't return any known incorrect error kind,
150+
/// In comprehensive and thorough tests that want to verify that a test doesn't return any known incorrect error kind,
151151
/// you may want to cut-and-paste the current list of errors from here into your test code. This seems counterintuitive,
152152
/// but it will make your tests more robust. In particular, if you want to verify that your code does produce an
153153
/// unrecognized error kind, the robust solution is to check for all the recognized error kinds and fail in those cases.

0 commit comments

Comments
 (0)