Project

General

Profile

Actions

Bug #13165

closed

Typographical Error in Refinements docs 2.1.1

Added by damiansimonpeter (Simon Peter Damian Simon Peter) about 7 years ago. Updated about 7 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:79291]

Description

If you check the example for refinements [[https://ruby-doc.org/core-2.1.1/doc/syntax/refinements_rdoc.html]][[here]], the varialbe c is not defined, it is suppose to be x. If a new user tries to run this code, this will raise a NameError exception. When I saw this first, I thought it was valid owing to the surprises of the ruby language. It would be nice if this error is corrected so we don't have issues while reading the docs. Thank you.


Files

Screen Shot 2017-01-27 at 11.07.00 AM.png (20.2 KB) Screen Shot 2017-01-27 at 11.07.00 AM.png Typographical Error in docs damiansimonpeter (Simon Peter Damian Simon Peter), 01/27/2017 09:02 PM

Updated by shevegen (Robert A. Heiler) about 7 years ago

The current docs work, e. g. see links such as:

https://ruby-doc.org/core/doc/syntax/refinements_rdoc.html

where you get redirected. There, the refinement example works.

The old link for old versions like 2.1.1 indeed have a typo - not
sure if the old ones get changed since 2.1.1 is outdated. People
should try to use the most recent ruby versions whenever possible.
If fixes to old ruby versions are still made, changing the .html
file would be quite easy but that depends on whether there are
still updates made to these old language versions.

Updated by shugo (Shugo Maeda) about 7 years ago

  • Status changed from Open to Rejected

We never backport any bug fixes to 2.1 except security fixes as announce before:

https://www.ruby-lang.org/en/news/2016/02/24/support-plan-of-ruby-2-0-0-and-2-1/

If you nevertheless believe the documentation should be fixed, contact .

Actions

Also available in: Atom PDF

Like0
Like0Like0