aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-13 22:02:31 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-13 22:02:31 +0000
commitd5b62c3aa152c2303458bee99666d3858c0792c9 (patch)
tree07253a09ccb294ebe01b611a3437e4573f99f11f /re.c
parentb44ac42335a9c135cd67a9881341fbf74b4b13fe (diff)
downloadruby-d5b62c3aa152c2303458bee99666d3858c0792c9.tar.gz
[rdoc] expalin kcode argument of Regexp.new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/re.c b/re.c
index 36b89deeb6..17612d48f4 100644
--- a/re.c
+++ b/re.c
@@ -2889,9 +2889,9 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re)
/*
* call-seq:
- * Regexp.new(string, [options [, lang]]) -> regexp
+ * Regexp.new(string, [options [, kcode]]) -> regexp
* Regexp.new(regexp) -> regexp
- * Regexp.compile(string, [options [, lang]]) -> regexp
+ * Regexp.compile(string, [options [, kcode]]) -> regexp
* Regexp.compile(regexp) -> regexp
*
* Constructs a new regular expression from +pattern+, which can be either a
@@ -2903,7 +2903,8 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re)
* <em>or</em>-ed together. Otherwise, if +options+ is not
* +nil+ or +false+, the regexp will be case insensitive.
*
- * When the +lang+ parameter is `n' or `N' sets the regexp no encoding.
+ * When the +kcode+ parameter is `n' or `N' sets the regexp no encoding.
+ * It means that the regexp is for binary strings.
*
* r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/
* r2 = Regexp.new('cat', true) #=> /cat/i