ErrorOr: Be more explicit in the implicit conversion to bool docs
authorJustin Bogner <mail@justinbogner.com>
Tue, 4 Nov 2014 21:01:48 +0000 (21:01 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 4 Nov 2014 21:01:48 +0000 (21:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221295 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ErrorOr.h

index 4d9f05bc09e3f88f02831c3cc7b84af3e24c5b94..84763deea0f9902eebf61cc2def95b047c9280ed 100644 (file)
@@ -68,9 +68,9 @@ public:
 /// \endcode
 ///
 ///
-/// An implicit conversion to bool provides a way to check if there was an
-/// error. The unary * and -> operators provide pointer like access to the
-/// value. Accessing the value when there is an error has undefined behavior.
+/// Implicit conversion to bool returns true if there is a usable value. The
+/// unary * and -> operators provide pointer like access to the value. Accessing
+/// the value when there is an error has undefined behavior.
 ///
 /// When T is a reference type the behaivor is slightly different. The reference
 /// is held in a std::reference_wrapper<std::remove_reference<T>::type>, and