Permalink
Browse files

(minor changes, part of unrelated diff)

Test Plan: No

Reviewed By: lucian@fb.com

FB internal diff: D515713
  • Loading branch information...
1 parent 7488db1 commit d50251a503679e989a7a41a1e8a8311621126a66 @tudor tudor committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 folly/Bits.h
View
@@ -24,7 +24,7 @@
* findLastSet(x)
* find last (most significant) bit set in a value of an integral type,
* 1-based. 0 = no bits are set (x == 0)
- * for x != 0, findFirstSet(x) == 1 + floor(log2(x))
+ * for x != 0, findLastSet(x) == 1 + floor(log2(x))
*
* nextPowTwo(x)
* Finds the next power of two >= x.

0 comments on commit d50251a

Please sign in to comment.