Skip to content

Commit

Permalink
Update tmpdir.rb from 3.1
Browse files Browse the repository at this point in the history
The changes here are trivial, and tmpdir will move to a gem soon
once we have incorporated our minor changes. We will no longer
copy this from CRuby proper.

ruby/tmpdir#13
  • Loading branch information
headius committed Jan 27, 2022
1 parent 78b1f1a commit 377030a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/ruby/stdlib/tmpdir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def self.tmpdir
#
# Dir.mktmpdir {|dir|
# # use the directory...
# open("#{dir}/foo", "w") { ... }
# open("#{dir}/foo", "w") { something using the file }
# }
#
# If a block is not given,
Expand All @@ -79,7 +79,7 @@ def self.tmpdir
# dir = Dir.mktmpdir
# begin
# # use the directory...
# open("#{dir}/foo", "w") { ... }
# open("#{dir}/foo", "w") { something using the file }
# ensure
# # remove the directory.
# FileUtils.remove_entry dir
Expand Down
1 change: 0 additions & 1 deletion tool/sync_ruby_files.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
STDLIB_FILES = %w[
tmpdir.rb
unicode_normalize
weakref.rb
]
Expand Down

0 comments on commit 377030a

Please sign in to comment.