summaryrefslogtreecommitdiff
path: root/tool/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-04-22 11:03:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-04-22 13:00:19 +0900
commitd42a8d66024f0a86c5a162eeffff1ab91ad9fa43 (patch)
tree834733939ae8058c859a14e0a8979bb9a74266d7 /tool/lib
parent44d2b5949167fe5b7de68de06b103e586d4133f8 (diff)
[DOC] Tweek a comment
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/_tmpdir.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/_tmpdir.rb b/tool/lib/_tmpdir.rb
index 242c4c3fa0..cb2a9f69f1 100644
--- a/tool/lib/_tmpdir.rb
+++ b/tool/lib/_tmpdir.rb
@@ -5,8 +5,8 @@ template = "rubytest."
if (tmpdir = Dir.mktmpdir(template)).size > 50 and File.directory?("/tmp")
# On macOS, the default TMPDIR is very long, inspite of UNIX socket
# path length is limited.
- # On Windows, UNIX socket is not available and no need to shorten
- # TMPDIR, otherwise assume "/tmp" always exists.
+ # Assume "/tmp" always exists on UNIX-like systems where UNIX socket
+ # is available, otherwise no need to shorten TMPDIR.
Dir.rmdir(tmpdir)
tmpdir = Dir.mktmpdir(template, "/tmp")
end