зеркало из https://github.com/github/ruby.git
* re.c (rb_reg_s_union_m): update rdoc. [ruby-dev:41354]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5c94d2d423
Коммит
268f95bdc6
|
@ -1,3 +1,7 @@
|
|||
Thu May 20 22:49:04 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* re.c (rb_reg_s_union_m): update rdoc. [ruby-dev:41354]
|
||||
|
||||
Thu May 20 22:08:28 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI
|
||||
|
|
1
re.c
1
re.c
|
@ -3195,6 +3195,7 @@ rb_reg_s_union(VALUE self, VALUE args0)
|
|||
* <em>pattern</em>s, i.e., will match any of its parts. The <em>pattern</em>s
|
||||
* can be Regexp objects, in which case their options will be preserved, or
|
||||
* Strings. If no patterns are given, returns <code>/(?!)/</code>.
|
||||
* The behavior is unspecified if any given <em>pattern</em> contains capture.
|
||||
*
|
||||
* Regexp.union #=> /(?!)/
|
||||
* Regexp.union("penzance") #=> /penzance/
|
||||
|
|
Загрузка…
Ссылка в новой задаче