Programming Ruby 3.2 (5th Edition): B4.0 page 504, with a 1 in the binary operation

@noelrappin

page 504, in Integer Class, third paragraph, third line :

new number with a 1 in the binary operation of either operand.

I don’t understand “in the binary operation”. Even if it seams a repetition of AND and XOR, I would prefer :

The bitwise OR (Integer#|) operator returns a new number with a 1 in each bit that is 1 in the binary representation of either operand.

Yeah, that’s just a typo, it should be “representation”