From ecc701217988f29fc78649f57670e26aa7fe40a7 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Thu, 22 Nov 2018 00:48:38 -0800 Subject: [PATCH] Fabric: Fixed `AttributedString::operator==` Summary: Trivial and shameful erratum. Reviewed By: mdvacca Differential Revision: D13166689 fbshipit-source-id: 75128299502bbc9ff5458c4381e7833aa451dd04 --- ReactCommon/fabric/attributedstring/AttributedString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/fabric/attributedstring/AttributedString.cpp b/ReactCommon/fabric/attributedstring/AttributedString.cpp index 630fb98f537d70..e2b3134501689f 100644 --- a/ReactCommon/fabric/attributedstring/AttributedString.cpp +++ b/ReactCommon/fabric/attributedstring/AttributedString.cpp @@ -73,7 +73,7 @@ std::string AttributedString::getString() const { } bool AttributedString::operator==(const AttributedString &rhs) const { - return fragments_ != rhs.fragments_; + return fragments_ == rhs.fragments_; } bool AttributedString::operator!=(const AttributedString &rhs) const {