Fix typo in folly::Optional
authorMax Wang <mwang@fb.com>
Thu, 16 Oct 2014 21:50:48 +0000 (14:50 -0700)
committerdcsommer <dcsommer@fb.com>
Fri, 17 Oct 2014 18:45:24 +0000 (11:45 -0700)
Test Plan: yes

Reviewed By: delong.j@fb.com

folly/Optional.h

index 032022b17883138083f178de17a14a4d6bf08507..dcc184aa585eafb0022dc0715580cb44696e59c6 100644 (file)
@@ -295,7 +295,7 @@ bool operator!=(const Optional<V>& a, const V& b) {
 }
 
 template<class V>
-bool operator==(const V& a, const Optional<V&> b) {
+bool operator==(const V& a, const Optional<V>& b) {
   return b.hasValue() && b.value() == a;
 }