diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-11-04 21:01:48 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-11-04 21:01:48 +0000 |
commit | af20fae2fb7d2856482e8fa5aa212c1f13e346c9 (patch) | |
tree | 391cbc177eb9578c12b5fb269b5324444ea0fd69 | |
parent | e3754634c0cd29ab70e29ecf50856700dc1ff671 (diff) | |
download | bcm5719-llvm-af20fae2fb7d2856482e8fa5aa212c1f13e346c9.tar.gz bcm5719-llvm-af20fae2fb7d2856482e8fa5aa212c1f13e346c9.zip |
ErrorOr: Be more explicit in the implicit conversion to bool docs
llvm-svn: 221295
-rw-r--r-- | llvm/include/llvm/Support/ErrorOr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/ErrorOr.h b/llvm/include/llvm/Support/ErrorOr.h index 4d9f05bc09e..84763deea0f 100644 --- a/llvm/include/llvm/Support/ErrorOr.h +++ b/llvm/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<std::remove_reference<T>::type>, and |