Issue #7558 has been updated by usa (Usaku NAKAMURA).

Status changed from Assigned to Third Party's Issue

seems it's only on ruby-doc.org.
----------------------------------------
Backport #7558: Small docs bug for Regexp::union
https://bugs.ruby-lang.org/issues/7558#change-35051

Author: alex_gaynor (Alex Gaynor)
Status: Third Party's Issue
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category: 
Target version: 


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/