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

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

wrong generated <acronym>s #47

Open onyxblade opened 6 years ago

onyxblade commented 6 years ago

https://ruby-hacking-guide.github.io/class.html In the "Compressed rb_singleton_class()" section, there is a line:

701      if (FL_TEST(RBASIC→klass, FL_SINGLETON) &&

However the correct one should be:

701      if (FL_TEST(RBASIC(obj)->klass, FL_SINGLETON) &&

(from http://i.loveruby.net/ja/rhg/book/class.html).



FL_TEST(<acronym title="obj"><span class="caps">RBASIC</span></acronym>

The html source shows that the obj term becomes part of an <acronym> tag, seems like wrong generated.

onyxblade commented 6 years ago

Another issue due to textile format: while rendering rb_intern("__attached__"), the __attached__ will become attached in italic.