[ruby/tempfile] Fix inconsistency in doc of Tempfile.create
https://github.com/ruby/tempfile/commit/3f96b2ed29
This commit is contained in:
parent
b6704201a3
commit
cc8329e8bc
@ -57,7 +57,7 @@ require 'tmpdir'
|
|||||||
# Note that Tempfile.create returns a File instance instead of a Tempfile, which
|
# Note that Tempfile.create returns a File instance instead of a Tempfile, which
|
||||||
# also avoids the overhead and complications of delegation.
|
# also avoids the overhead and complications of delegation.
|
||||||
#
|
#
|
||||||
# Tempfile.open('foo') do |file|
|
# Tempfile.create('foo') do |file|
|
||||||
# # ...do something with file...
|
# # ...do something with file...
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user