Bug #952

rb_obj_not_match documentation is buggy

Added by Kornelius Kalnbach about 3 years ago. Updated 10 months ago.

[ruby-core:20991]
Status:Closed Start date:12/30/2008
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:DOC
Target version:1.9.1 RC2
ruby -v:

Description

The documentation for Object#!~ is currently incorrect and grammatically wrong, it says:

/*
 *  call-seq:
 *     obj !~ other  => nil
 *  
 *  Returns true if two objects does not match, using <i>=~</i> method.
 */

It should be replaced with something like this:

/*
 *  call-seq:
 *     obj !~ other  => true or false
 *  
 *  Returns true if two objects do not match (using the <i>=~</i>
 *  method), otherwise false.
 */

Patch attached.

rb_obj_not_match_docu.diff (452 Bytes) Kornelius Kalnbach, 12/30/2008 10:32 pm

History

Updated by Yuki Sonoda about 3 years ago

  • Status changed from Open to Closed
applied in r21493.

Also available in: Atom PDF