From: Jeff Cai <jcai@fb.com>
Date: Thu, 20 Jul 2017 20:09:10 +0000 (-0700)
Subject: fix ExceptionWrapper comment
X-Git-Tag: v2017.07.24.00~13
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=663e27f943b76a938234fcfaa828b27a0d78fe43;p=folly.git

fix ExceptionWrapper comment

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
---

diff --git a/folly/ExceptionWrapper.h b/folly/ExceptionWrapper.h
index b932abb4..5f1d65a2 100644
--- a/folly/ExceptionWrapper.h
+++ b/folly/ExceptionWrapper.h
@@ -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)`