From 663e27f943b76a938234fcfaa828b27a0d78fe43 Mon Sep 17 00:00:00 2001 From: Jeff Cai Date: Thu, 20 Jul 2017 13:09:10 -0700 Subject: [PATCH] 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 --- folly/ExceptionWrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)` -- 2.34.1