Project

General

Profile

Actions

Backport #7558

closed

Small docs bug for Regexp::union

Added by alex_gaynor (Alex Gaynor) almost 12 years ago. Updated almost 12 years ago.

Status:
Third Party's Issue
[ruby-core:50874]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0