Skip to content

Commit d071bd0

Browse files
committed
Removing the hack from error handling chapter, which is does not make sense anymore.
1 parent 6878fce commit d071bd0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/doc/trpl/error-handling.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,11 +1137,7 @@ impl error::Error for CliError {
11371137
// implementations.
11381138
match *self {
11391139
CliError::Io(ref err) => err.description(),
1140-
// Normally we can just write `err.description()`, but the error
1141-
// type has a concrete method called `description`, which conflicts
1142-
// with the trait method. For now, we must explicitly call
1143-
// `description` through the `Error` trait.
1144-
CliError::Parse(ref err) => error::Error::description(err),
1140+
CliError::Parse(ref err) => err.description(err),
11451141
}
11461142
}
11471143

0 commit comments

Comments
 (0)