summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-29 14:18:34 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-29 14:18:34 +0000
commitf7b046987d0ffcaf9e70cc928dc55778cba10925 (patch)
treea5ca25816a995a6c5bc6dc5004847accf88d641d /re.c
parentd5a775f5271e214273b7a2888a3a755040c6b50a (diff)
* re.c (rb_reg_match): fix rdoc of Regexp#=~.
patched by Tsuyoshi Sawada. [Bug #4781] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/re.c b/re.c
index 67f38c6..ec3fd70 100644
--- a/re.c
+++ b/re.c
@@ -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 "
@@ -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