Issue #8018 has been reported by eljojo (Jose Tomas Albornoz).

----------------------------------------
Bug #8018: Typo in Class: Encoding documentation. Encoding::UTF-8 instead of Encoding::UTF_8
https://bugs.ruby-lang.org/issues/8018

Author: eljojo (Jose Tomas Albornoz)
Status: Open
Priority: Low
Assignee: zzak (Zachary Scott)
Category: doc
Target version: 
ruby -v: 2.0


Hi, there's a typo in the Encoding Class documentation. http://ruby-doc.org/core-2.0/Encoding.html

In the Changing an encoding section, in the example says

string.force_encoding(Encoding::UTF-8)

instead of 
string.force_encoding(Encoding::UTF_8)

The current example causes an NameError: uninitialized constant Encoding::UTF error



-- 
http://bugs.ruby-lang.org/