[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|
|
# Dir.mktmpdir {|dir|
|
||||||
# # use the directory...
|
# # use the directory...
|
||||||
# open("#{dir}/foo", "w") { ... }
|
# open("#{dir}/foo", "w") { something using the file }
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# If a block is not given,
|
# If a block is not given,
|
||||||
@ -79,7 +79,7 @@ class Dir
|
|||||||
# dir = Dir.mktmpdir
|
# dir = Dir.mktmpdir
|
||||||
# begin
|
# begin
|
||||||
# # use the directory...
|
# # use the directory...
|
||||||
# open("#{dir}/foo", "w") { ... }
|
# open("#{dir}/foo", "w") { something using the file }
|
||||||
# ensure
|
# ensure
|
||||||
# # remove the directory.
|
# # remove the directory.
|
||||||
# FileUtils.remove_entry dir
|
# FileUtils.remove_entry dir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user