From cc8329e8bc487aad825ba1e7948a714d77c2c6ac Mon Sep 17 00:00:00 2001 From: Sven Schwyn Date: Wed, 22 Feb 2023 11:37:32 +0100 Subject: [PATCH] [ruby/tempfile] Fix inconsistency in doc of Tempfile.create https://github.com/ruby/tempfile/commit/3f96b2ed29 --- lib/tempfile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #