Skip to content

Commit 36c0ff8

Browse files
committed
Reword docs for Infallible to make them easier to understand.
1 parent 414ee9a commit 36c0ff8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/libcore/convert.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,12 @@
5050

5151
use fmt;
5252

53-
/// An uninhabited type used as the error type for implementations of fallible
54-
/// conversion traits in cases where they cannot actually fail.
53+
/// A type used as the error type for implementations of fallible conversion
54+
/// traits in cases where conversions cannot actually fail.
5555
///
56-
/// Because `Infallible` has no constructors (variants), a value of this type
57-
/// can never exist. It is used only to satisfy trait signatures that expect
58-
/// an error type, and signals to both the compiler and the user that the error
59-
/// case is impossible.
56+
/// Because `Infallible` has no variants, a value of this type can never exist.
57+
/// It is used only to satisfy trait signatures that expect an error type, and
58+
/// signals to both the compiler and the user that the error case is impossible.
6059
#[unstable(feature = "try_from", issue = "33417")]
6160
pub enum Infallible {}
6261

0 commit comments

Comments
 (0)