aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-26 07:56:36 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-26 07:56:36 +0000
commit6dc1a46323aee433bacc98d2050db9b70fa82eb1 (patch)
tree71c733ae4dfab15ac538ee1887019920ee621e8d
parent46c8b826fde1093c5b41e987ac8b0c8ea3eaaf40 (diff)
downloadruby-6dc1a46323aee433bacc98d2050db9b70fa82eb1.tar.gz
* ext/strscan/strscan.c: fix rdoc. (length -> bytesize)
reported by Kornelius Kalnbach. see [ruby-core:27792] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/strscan/strscan.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index bf81a4faa9..99a1dbaee4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 26 16:43:34 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/strscan/strscan.c: fix rdoc. (length -> bytesize)
+ reported by Kornelius Kalnbach. see [ruby-core:27792]
+
Tue Jan 26 07:06:05 2010 Tanaka Akira <akr@fsij.org>
* lib/matrix.rb: suppress warnings.
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index 490689b3d2..f7101823f5 100644
--- a/ext/strscan/strscan.c
+++ b/ext/strscan/strscan.c
@@ -353,9 +353,9 @@ strscan_concat(VALUE self, VALUE str)
}
/*
- * Returns the position of the scan pointer. In the 'reset' position, this
+ * Returns the byte position of the scan pointer. In the 'reset' position, this
* value is zero. In the 'terminated' position (i.e. the string is exhausted),
- * this value is the length of the string.
+ * this value is the bytesize of the string.
*
* In short, it's a 0-based index into the string.
*
@@ -378,7 +378,7 @@ strscan_get_pos(VALUE self)
/*
* call-seq: pos=(n)
*
- * Modify the scan pointer.
+ * Set the byte position of the scan pointer.
*
* s = StringScanner.new('test string')
* s.pos = 7 # -> 7