From f3e0f10787d5b6543e69675f0e237db321f9d8e9 Mon Sep 17 00:00:00 2001 From: Max Wang Date: Thu, 16 Oct 2014 14:50:48 -0700 Subject: [PATCH] Fix typo in folly::Optional Test Plan: yes Reviewed By: delong.j@fb.com --- folly/Optional.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1