From: "alex_gaynor (Alex Gaynor)" Date: 2012-12-14T00:26:57+09:00 Subject: [ruby-core:50874] [ruby-trunk - Bug #7558][Open] Small docs bug for Regexp::union Issue #7558 has been reported by alex_gaynor (Alex Gaynor). ---------------------------------------- Bug #7558: Small docs bug for Regexp::union https://bugs.ruby-lang.org/issues/7558 Author: alex_gaynor (Alex Gaynor) Status: Open Priority: Normal Assignee: Category: DOC Target version: ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin12.2.0] The docs for Regexp::union (http://ruby-doc.org/core-1.9.3/Regexp.html#method-c-union) state: Regexp.union(/dogs/, /cats/) #=> /(?-mix:dogs)|(?i-mx:cats)/ This is, however, incorrect, /cats/ doesn't have the /i flag, either it should be added or the expected result should be changed. -- http://bugs.ruby-lang.org/