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:
parent
51c67ee61a
commit
414b5565f7
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue