Skip to content

Commit 3f96b2e

Browse files
authored
Fix inconsistency in doc of Tempfile.create
1 parent dcff089 commit 3f96b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tempfile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# Note that Tempfile.create returns a File instance instead of a Tempfile, which
5858
# also avoids the overhead and complications of delegation.
5959
#
60-
# Tempfile.open('foo') do |file|
60+
# Tempfile.create('foo') do |file|
6161
# # ...do something with file...
6262
# end
6363
#

0 commit comments

Comments
 (0)