Bug #8018

Typo in Class: Encoding documentation. Encoding::UTF-8 instead of Encoding::UTF_8

Added by Jose Tomas Albornoz about 1 year ago. Updated about 1 year ago.

[ruby-core:53139]
Status:Closed
Priority:Low
Assignee:Zachary Scott
Category:doc
Target version:-
ruby -v:2.0 Backport:

Description

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.forceencoding(Encoding::UTF8)

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

History

#1 Updated by Marc-Andre Lafortune about 1 year ago

  • Status changed from Open to Closed

Also available in: Atom PDF