aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
authorSven Schwyn <sven.schwyn@bitcetera.com>2023-02-22 11:37:32 +0100
committergit <svn-admin@ruby-lang.org>2023-02-27 02:29:06 +0000
commitcc8329e8bc487aad825ba1e7948a714d77c2c6ac (patch)
treed146763fc5442eb741baa493905a0d395b3274ee /lib/tempfile.rb
parentb6704201a3ef6a7f07da8d4ca82499710a3eea10 (diff)
downloadruby-cc8329e8bc487aad825ba1e7948a714d77c2c6ac.tar.gz
[ruby/tempfile] Fix inconsistency in doc of Tempfile.create
https://github.com/ruby/tempfile/commit/3f96b2ed29
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 c3263ed3c6..1bb13e9501 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -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
#