aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tmpdir.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-05 09:45:41 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-11-11 10:37:35 +0900
commit414b5565f7d0aeb27b43e8f3b81914314e03dfb0 (patch)
treeed508ecfe582ee73fa15c3ed9beb477cdf768e3f /lib/tmpdir.rb
parent51c67ee61a57093cfd6f0e06a5aff77d479a37e1 (diff)
downloadruby-414b5565f7d0aeb27b43e8f3b81914314e03dfb0.tar.gz
[ruby/tmpdir] [DOC] Fix syntax in example code [ci skip]
RDoc expects example code to be valid syntax. https://github.com/ruby/tmpdir/commit/ee42540ebb
Diffstat (limited to 'lib/tmpdir.rb')
-rw-r--r--lib/tmpdir.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb
index bf7db5282a..3b67164039 100644
--- a/lib/tmpdir.rb
+++ b/lib/tmpdir.rb
@@ -69,7 +69,7 @@ class Dir
#
# Dir.mktmpdir {|dir|
# # use the directory...
- # open("#{dir}/foo", "w") { ... }
+ # open("#{dir}/foo", "w") { something using the file }
# }
#
# If a block is not given,
@@ -79,7 +79,7 @@ class Dir
# 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