ruby-hacking-guide / ruby-hacking-guide.github.com

Ruby Hacking Guide Translation
http://ruby-hacking-guide.github.io/
318 stars 50 forks source link

Update object.textile #10

Closed oneamtu closed 11 years ago

oneamtu commented 11 years ago

From the code sample and the example it looks like it's shifting it to the left, not the right.

markburns commented 11 years ago

By the way, I'm not saying you're wrong. I just got back from Japan yesterday and have jetlag and trying to stay up until a reasonable time, so wasn't wanting to merge in any broken changes without double-checking with a fresh mind.

ocha- commented 11 years ago

This is an error in translation. I think chapter 02 is not so ready to get reviewed if you are not a translator.

markburns commented 11 years ago

Original said:

1ビット左シフトして、1をbit orする。ということはつまり、

|` 110100001000`|変換前|
|`1101000010001`|変換後|

So merging this.

oneamtu commented 11 years ago

Thanks! I think '<<' means shift to the left in C.