summaryrefslogtreecommitdiff
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r--lib/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 46803b20f2..a00208cd7c 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -190,7 +190,7 @@ class Tempfile < DelegateClass(File)
#
# If a block is given, it will be passed tempfile as an argument,
# and the tempfile will automatically be closed when the block
- # terminates. In this case, open() returns nil.
+ # terminates. The call returns the value of the block.
def open(*args)
tempfile = new(*args)