Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Oct 25, 2015
1 parent 4992d89 commit cdd831f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recursion/powerset.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ func PowerSet(s []interface{}) (ps []interface{}, ok bool) {
for x > 0 {
lsb := x & -x // x & -x is same as x & ^(x - 1).

// Compute index of x's least significant bit.
// Compute the index of x's least significant bit.
i := 0
p := 1
for lsb&p == 0 { // lsb mast be greater then 0, which is always true 'cause x > 0.
for lsb&p == 0 { // lsb must always be greater then 0, which is always true 'cause x > 0.
p <<= 1
i++
}
Expand Down

0 comments on commit cdd831f

Please sign in to comment.