diff --git a/ChangeLog b/ChangeLog index 5bef9ff669..82880f6a8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu May 20 22:49:04 2010 Yusuke Endoh + + * re.c (rb_reg_s_union_m): update rdoc. [ruby-dev:41354] + Thu May 20 22:08:28 2010 Yusuke Endoh * vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI diff --git a/re.c b/re.c index dddd941515..e272146c90 100644 --- a/re.c +++ b/re.c @@ -3195,6 +3195,7 @@ rb_reg_s_union(VALUE self, VALUE args0) * patterns, i.e., will match any of its parts. The patterns * can be Regexp objects, in which case their options will be preserved, or * Strings. If no patterns are given, returns /(?!)/. + * The behavior is unspecified if any given pattern contains capture. * * Regexp.union #=> /(?!)/ * Regexp.union("penzance") #=> /penzance/