зеркало из https://github.com/github/ruby.git
[ruby/tempfile] Fix inconsistency in doc of Tempfile.create
https://github.com/ruby/tempfile/commit/3f96b2ed29
This commit is contained in:
Родитель
b6704201a3
Коммит
cc8329e8bc
|
@ -57,7 +57,7 @@ require 'tmpdir'
|
|||
# Note that Tempfile.create returns a File instance instead of a Tempfile, which
|
||||
# also avoids the overhead and complications of delegation.
|
||||
#
|
||||
# Tempfile.open('foo') do |file|
|
||||
# Tempfile.create('foo') do |file|
|
||||
# # ...do something with file...
|
||||
# end
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче