From f0fe2054bd16f2f72aababdee4c0cc48ad090a02 Mon Sep 17 00:00:00 2001 From: kazu Date: Sun, 22 Jan 2017 03:06:17 +0000 Subject: Hash#fetch: fix grammar in documentation. [Fix GH-1515][ci skip] Author: Alyssa Ross git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 3e7615876e..bec9c8522b 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 KeyError exception; if default 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 KeyError exception; if default 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 -- cgit v1.2.3