[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:
parent
51c67ee61a
commit
414b5565f7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user