about summary refs log tree commit diff
path: root/src/libcore/convert.rs
diff options
context:
space:
mode:
authorJimmy Cuadra <jimmy@jimmycuadra.com>2017-09-01 00:26:37 -0700
committerJimmy Cuadra <jimmy@jimmycuadra.com>2017-09-01 00:26:37 -0700
commit36c0ff8690621f44b7bed31da96fbc64a101c2af (patch)
tree215f7313bc79aba458e1e770261930012376e735 /src/libcore/convert.rs
parent414ee9a2541d1a866864641c250367f0c28978be (diff)
downloadrust-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.rs11
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 {}