Skip to content

Commit

Permalink
[DOC] Fix syntax in example code [ci skip]
Browse files Browse the repository at this point in the history
RDoc expects example code to be valid syntax.
  • Loading branch information
nobu committed Nov 5, 2021
1 parent 5ba0d59 commit ee42540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tmpdir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def self.tmpdir
#
# Dir.mktmpdir {|dir|
# # use the directory...
# open("#{dir}/foo", "w") { ... }
# open("#{dir}/foo", "w") { something using the file }
# }
#
# If a block is not given,
Expand All @@ -79,7 +79,7 @@ def self.tmpdir
# 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
Expand Down

0 comments on commit ee42540

Please sign in to comment.