Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 302c7d5

Browse files
joshtriplettYamakaky
authored andcommitted
examples/all.rs: Fix typo in type name (#102)
Part of the example used feature::Error instead of feature::ErrorKind, which would have caused it to fail to compile if not for the fake feature disabling it.
1 parent 74021c5 commit 302c7d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ error_chain! {
2424
links {
2525
Inner(inner::Error, inner::ErrorKind);
2626
// Attributes can be added at the end of the declaration.
27-
Feature(feature::Error, feature::Error) #[cfg(feature = "a_feature")];
27+
Feature(feature::Error, feature::ErrorKind) #[cfg(feature = "a_feature")];
2828
}
2929

3030
// Bindings to types implementing std::error::Error.

0 commit comments

Comments
 (0)