summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-11 17:40:32 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-11 17:40:32 +0000
commit56804d8984138a88b916532e3eeb6952b34636da (patch)
treec1d4414d1da7032ef4bc2ff64c14015ff5248663 /hash.c
parentcf45a681c0e220b59a5a2e93adf4247a16dd3b3e (diff)
merge revision(s) 57390:
Hash#fetch: fix grammar in documentation. [Fix GH-1515][ci skip] Author: Alyssa Ross <hi+services.github@alyssa.is> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index 4672934566..7c844da965 100644
--- a/hash.c
+++ b/hash.c
@@ -876,9 +876,9 @@ rb_hash_lookup(VALUE hash, VALUE key)
*
* 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