1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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
This commit is contained in:
Nobuyoshi Nakada 2021-11-05 09:45:41 +09:00 committed by Hiroshi SHIBATA
parent 51c67ee61a
commit 414b5565f7
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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