Skip to content

Commit

Permalink
* re.c (rb_reg_match): fix rdoc of Regexp#=~.
Browse files Browse the repository at this point in the history
  patched by Tsuyoshi Sawada. [Bug ruby#4781]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed May 29, 2011
1 parent d5a775f commit f7b0469
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Sun May 29 23:17:29 2011 NARUSE, Yui <naruse@ruby-lang.org>

* re.c (rb_reg_match): fix rdoc of Regexp#=~.
patched by Tsuyoshi Sawada. [Bug #4781]

Sun May 29 23:10:42 2011 NARUSE, Yui <naruse@ruby-lang.org>

* lib/webrick/https.rb (WEBrick::HTTPRequest#parse_uri):
Expand Down
4 changes: 2 additions & 2 deletions re.c
Expand Up @@ -2713,7 +2713,7 @@ reg_match_pos(VALUE re, VALUE *strp, long pos)
* The parser detects 'regexp-literal =~ expression' for the assignment.
* The regexp must be a literal without interpolation and placed at left hand side.
*
* The assignment is not occur if the regexp is not a literal.
* The assignment does not occur if the regexp is not a literal.
*
* re = /(?<lhs>\w+)\s*=\s*(?<rhs>\w+)/
* re =~ " x = y "
Expand All @@ -2727,7 +2727,7 @@ reg_match_pos(VALUE re, VALUE *strp, long pos)
* /(?<lhs>\w+)\s*=\s*#{rhs_pat}/ =~ "x = y"
* p lhs # undefined local variable
*
* The assignment is not occur if the regexp is placed at right hand side.
* The assignment does not occur if the regexp is placed at the right hand side.
*
* " x = y " =~ /(?<lhs>\w+)\s*=\s*(?<rhs>\w+)/
* p lhs, rhs # undefined local variable
Expand Down

0 comments on commit f7b0469

Please sign in to comment.