[前][次][番号順一覧][スレッド一覧]

ruby-changes:14578

From: naruse <ko1@a...>
Date: Tue, 26 Jan 2010 16:56:51 +0900 (JST)
Subject: [ruby-changes:14578] Ruby:r26420 (trunk): * ext/strscan/strscan.c: fix rdoc. (length -> bytesize)

naruse	2010-01-26 16:56:36 +0900 (Tue, 26 Jan 2010)

  New Revision: 26420

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26420

  Log:
    * ext/strscan/strscan.c: fix rdoc. (length -> bytesize)
      reported by Kornelius Kalnbach. see [ruby-core:27792]

  Modified files:
    trunk/ChangeLog
    trunk/ext/strscan/strscan.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26419)
+++ ChangeLog	(revision 26420)
@@ -1,3 +1,8 @@
+Tue Jan 26 16:43:34 2010  NARUSE, Yui  <naruse@r...>
+
+	* 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@f...>
 
 	* lib/matrix.rb: suppress warnings.
Index: ext/strscan/strscan.c
===================================================================
--- ext/strscan/strscan.c	(revision 26419)
+++ ext/strscan/strscan.c	(revision 26420)
@@ -353,9 +353,9 @@
 }
 
 /*
- * 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 @@
 /*
  * 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]