diff options
| author | Jimmy Cuadra <jimmy@jimmycuadra.com> | 2017-09-01 00:26:37 -0700 |
|---|---|---|
| committer | Jimmy Cuadra <jimmy@jimmycuadra.com> | 2017-09-01 00:26:37 -0700 |
| commit | 36c0ff8690621f44b7bed31da96fbc64a101c2af (patch) | |
| tree | 215f7313bc79aba458e1e770261930012376e735 /src/libcore/convert.rs | |
| parent | 414ee9a2541d1a866864641c250367f0c28978be (diff) | |
| download | rust-36c0ff8690621f44b7bed31da96fbc64a101c2af.tar.gz rust-36c0ff8690621f44b7bed31da96fbc64a101c2af.zip | |
Reword docs for Infallible to make them easier to understand.
Diffstat (limited to 'src/libcore/convert.rs')
| -rw-r--r-- | src/libcore/convert.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index 37b5bfa265d..d3a86f7f3e3 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -50,13 +50,12 @@ use fmt; -/// An uninhabited type used as the error type for implementations of fallible -/// conversion traits in cases where they cannot actually fail. +/// A type used as the error type for implementations of fallible conversion +/// traits in cases where conversions cannot actually fail. /// -/// Because `Infallible` has no constructors (variants), a value of this type -/// can never exist. It is used only to satisfy trait signatures that expect -/// an error type, and signals to both the compiler and the user that the error -/// case is impossible. +/// Because `Infallible` has no variants, a value of this type can never exist. +/// It is used only to satisfy trait signatures that expect an error type, and +/// signals to both the compiler and the user that the error case is impossible. #[unstable(feature = "try_from", issue = "33417")] pub enum Infallible {} |
