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)