fix ExceptionWrapper comment
authorJeff Cai <jcai@fb.com>
Thu, 20 Jul 2017 20:09:10 +0000 (13:09 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 20 Jul 2017 20:20:40 +0000 (13:20 -0700)
Summary:
Fix comment for exception_wrapper's `operator bool()`.
It reads "return `true` if `*this` is not holding an exception"
but the actual behavior is to return `true` if `*this` *is* holding
an exception.

Reviewed By: yfeldblum

Differential Revision: D5456386

fbshipit-source-id: ec3a472ea441476d835881e94036a3957bb2ab32

folly/ExceptionWrapper.h

index b932abb4cb5a585342a811b0fd6be9667584ad43..5f1d65a2cfa5cee6881a9ee7b62f39527fb52ac5 100644 (file)
@@ -444,7 +444,7 @@ class exception_wrapper final {
   //! Swaps the value of `*this` with the value of `that`
   void swap(exception_wrapper& that) noexcept;
 
-  //! \return `true` if `*this` is not holding an exception.
+  //! \return `true` if `*this` is holding an exception.
   explicit operator bool() const noexcept;
 
   //! \return `!bool(*this)`