From: Max Wang Date: Thu, 16 Oct 2014 21:50:48 +0000 (-0700) Subject: Fix typo in folly::Optional X-Git-Tag: v0.22.0~264 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f3e0f10787d5b6543e69675f0e237db321f9d8e9;p=folly.git Fix typo in folly::Optional Test Plan: yes Reviewed By: delong.j@fb.com --- diff --git a/folly/Optional.h b/folly/Optional.h index 032022b1..dcc184aa 100644 --- a/folly/Optional.h +++ b/folly/Optional.h @@ -295,7 +295,7 @@ bool operator!=(const Optional& a, const V& b) { } template -bool operator==(const V& a, const Optional b) { +bool operator==(const V& a, const Optional& b) { return b.hasValue() && b.value() == a; }