From: Justin Bogner Date: Tue, 4 Nov 2014 21:01:48 +0000 (+0000) Subject: ErrorOr: Be more explicit in the implicit conversion to bool docs X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d2d9ad0d6694f5559c98ccb01b5b6cd2e149ddb9;p=oota-llvm.git ErrorOr: Be more explicit in the implicit conversion to bool docs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221295 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h index 4d9f05bc09e..84763deea0f 100644 --- a/include/llvm/Support/ErrorOr.h +++ b/include/llvm/Support/ErrorOr.h @@ -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::type>, and