(minor changes, part of unrelated diff)
authorTudor Bosman <tudorb@fb.com>
Tue, 10 Jul 2012 20:40:31 +0000 (13:40 -0700)
committerTudor Bosman <tudorb@fb.com>
Fri, 13 Jul 2012 23:29:32 +0000 (16:29 -0700)
Test Plan: No

Reviewed By: lucian@fb.com

FB internal diff: D515713

folly/Bits.h

index 6413252f01597f45e852c7ea563e319ad0c27bf9..f97ada8e5aaa076b0296d3cb934766855e7fc6fc 100644 (file)
@@ -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.