Project

General

Profile

Misc #8548

Correction for a String#include? usage example

Added by Matthew Conway about 3 years ago. Updated almost 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
[ruby-core:55565]

Description

I've fixed a usage example for String#include? that was not valid Ruby. This is my first attempt at submitting an issue or patch for Ruby, so please pardon any errors. Thank you!

0001-Correct-a-usage-example-for-String-include.patch Magnifier (636 Bytes) Matthew Conway, 06/20/2013 03:01 PM

History

#1 [ruby-core:55566] Updated by Charlie Somerville about 3 years ago

  • Status changed from Open to Rejected

?h is actually valid Ruby - it's shorthand for "h".

irb(main):001:0> "hello".include? ?h
=> true

#2 [ruby-core:55576] Updated by Matthew Conway about 3 years ago

Thanks, Charlie. While the shorthand is valid, the actual problem is that the question mark does not appear when viewing the generated documentation (screenshot: http://cl.ly/Pmx1). Is there a way to escape that character so it appears and makes the rendered docs valid?

#3 [ruby-core:55899] Updated by Zachary Scott almost 3 years ago

@mattonrails this bug was actually fixed just recently in rdoc, see https://github.com/rdoc/rdoc/issues/220

#4 [ruby-core:56026] Updated by Matthew Conway almost 3 years ago

@zzak even better; thanks for the heads-up :)

Also available in: Atom PDF