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

ruby-changes:19832

From: drbrain <ko1@a...>
Date: Wed, 1 Jun 2011 07:36:07 +0900 (JST)
Subject: [ruby-changes:19832] drbrain:r31878 (trunk): * hash.c (key_i): Change rdoc from "the first occurence" to "an

drbrain	2011-06-01 07:35:59 +0900 (Wed, 01 Jun 2011)

  New Revision: 31878

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

  Log:
    * hash.c (key_i):  Change rdoc from "the first occurence" to "an
      occurrence" since first occurrence is not a specification of
      Hash#key.  [Ruby 1.9 - Bug #4760]

  Modified files:
    trunk/ChangeLog
    trunk/hash.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31877)
+++ ChangeLog	(revision 31878)
@@ -1,3 +1,9 @@
+Wed Jun  1 07:34:57 2011  Eric Hodel  <drbrain@s...>
+
+	* hash.c (key_i):  Change rdoc from "the first occurence" to "an
+	  occurrence" since first occurrence is not a specification of
+	  Hash#key.  [Ruby 1.9 - Bug #4760]
+
 Wed Jun  1 07:26:19 2011  Eric Hodel  <drbrain@s...>
 
 	* ext/pty/pty.c (pty_check):  Restore "not reached" comment.
Index: hash.c
===================================================================
--- hash.c	(revision 31877)
+++ hash.c	(revision 31878)
@@ -740,7 +740,7 @@
  *  call-seq:
  *     hsh.key(value)    -> key
  *
- *  Returns the key of the first occurrence of a given value. If the value is
+ *  Returns the key of an occurrence of a given value. If the value is
  *  not found, returns <code>nil</code>.
  *
  *     h = { "a" => 100, "b" => 200, "c" => 300, "d" => 300 }

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

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