rdoc/rdoc — Issue #91: rdoc eats "[n]" in docs and turns it into hyperlink
Author: mattneub
Created: 2011-12-14 17:03:25+00:00
State: open

This is a little old, and may already be fixed behind the scenes, but is submitted for the sake of completeness.

Take a peek at this page:

http://ruby-doc.org/core-1.8.7/MatchData.html

Look at the first instance method, `#[]`:

> _mtch_ is equivalent to the special variable `$&`, and returns the entire
matched string. _mtch_, _mtch_, and so on return the values of the matched
backreferences "

Those nonsensical-looking, repeated "_mtch_" should be `mtch[0]`, `mtch[1]`,
`mtch[2]` etc., but the `[n]` is getting eaten and turned into a false
hyperlink.