summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorDaniel Radetsky <dradetsky@gmail.com>2019-08-06 18:21:32 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-07 22:25:50 +0900
commit82527d9b50207607b2adb7fb6dded91d23749feb (patch)
treea0c9696e0a5abc352e476af0319bd857bfeed378 /hash.c
parent58dec9625cc705fd9be6dc1ea20e232303e9c32d (diff)
fix spelling
Closes: https://github.com/ruby/ruby/pull/2323
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index dd4c2a3f87..a6b98c6ba8 100644
--- a/hash.c
+++ b/hash.c
@@ -4767,8 +4767,8 @@ rb_f_getenv(VALUE obj, VALUE name)
*
* Retrieves the environment variable +name+.
*
- * If the given name does not exist and neither +default+ nor a block a
- * provided an KeyError is raised. If a block is given it is called with
+ * If the given name does not exist and neither +default+ nor a block is
+ * provided, a KeyError is raised. If a block is given it is called with
* the missing name to provide a value. If a default value is given it will
* be returned when no block is given.
*/