Skip to content

Commit c46d9f6

Browse files
Update library/std/src/io/error.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
1 parent 057dc09 commit c46d9f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/io/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ struct Custom {
148148
/// "all other errors".
149149
///
150150
/// In comprehensive and thorough tests that want to verify that a test doesn't return any known incorrect error kind,
151-
/// you may want to cut-and-paste the current list of errors from here into your test code. This seems counterintuitive,
151+
/// you may want to cut-and-paste the current full list of errors from here into your test code, and then match `_` as the correct case. 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.
154154
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]

0 commit comments

Comments
 (0)