Skip to content

Commit

Permalink
Fabric: Fixed AttributedString::operator==
Browse files Browse the repository at this point in the history
Summary: Trivial and shameful erratum.

Reviewed By: mdvacca

Differential Revision: D13166689

fbshipit-source-id: 75128299502bbc9ff5458c4381e7833aa451dd04
  • Loading branch information
shergin authored and facebook-github-bot committed Nov 22, 2018
1 parent 02a3517 commit ecc7012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactCommon/fabric/attributedstring/AttributedString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ecc7012

Please sign in to comment.