diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb
index 5cf2c47448..485054746f 100644
--- a/lib/tmpdir.rb
+++ b/lib/tmpdir.rb
@@ -54,7 +54,7 @@ class Dir
# the prefix "d" is used.
#
# The directory is created under Dir.tmpdir or
- # the optional second argument tmpdir if given.
+ # the optional second argument tmpdir if non-nil value is given.
#
# If a block is given,
# it is yielded with the path of the directory.