[前][次][番号順一覧][スレッド一覧]

ruby-changes:69691

From: Nobuyoshi <ko1@a...>
Date: Thu, 11 Nov 2021 10:38:06 +0900 (JST)
Subject: [ruby-changes:69691] 414b5565f7 (master): [ruby/tmpdir] [DOC] Fix syntax in example code [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=414b5565f7

From 414b5565f7d0aeb27b43e8f3b81914314e03dfb0 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 5 Nov 2021 09:45:41 +0900
Subject: [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
---
 lib/tmpdir.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb
index bf7db5282ac..3b671640392 100644
--- a/lib/tmpdir.rb
+++ b/lib/tmpdir.rb
@@ -69,7 +69,7 @@ class Dir https://github.com/ruby/ruby/blob/trunk/lib/tmpdir.rb#L69
   #
   #  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 https://github.com/ruby/ruby/blob/trunk/lib/tmpdir.rb#L79
   #  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
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]