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

ruby-changes:45318

From: kazu <ko1@a...>
Date: Sun, 22 Jan 2017 12:06:26 +0900 (JST)
Subject: [ruby-changes:45318] kazu:r57390 (trunk): Hash#fetch: fix grammar in documentation.

kazu	2017-01-22 12:06:17 +0900 (Sun, 22 Jan 2017)

  New Revision: 57390

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57390

  Log:
    Hash#fetch: fix grammar in documentation.
    
    [Fix GH-1515][ci skip]
    Author:    Alyssa Ross <hi+services.github@a...>

  Modified files:
    trunk/hash.c
Index: hash.c
===================================================================
--- hash.c	(revision 57389)
+++ hash.c	(revision 57390)
@@ -876,9 +876,9 @@ rb_hash_lookup(VALUE hash, VALUE key) https://github.com/ruby/ruby/blob/trunk/hash.c#L876
  *
  *  Returns a value from the hash for the given key. If the key can't be
  *  found, there are several options: With no other arguments, it will
- *  raise an <code>KeyError</code> exception; if <i>default</i> is
- *  given, then that will be returned; if the optional code block is
- *  specified, then that will be run and its result returned.
+ *  raise a <code>KeyError</code> exception; if <i>default</i> is given,
+ *  then that will be returned; if the optional code block is specified,
+ *  then that will be run and its result returned.
  *
  *     h = { "a" => 100, "b" => 200 }
  *     h.fetch("a")                            #=> 100

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

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