summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-16 11:18:49 +0900
committergit <svn-admin@ruby-lang.org>2023-11-16 02:22:08 +0000
commite374512682b9fcc8b47c633a946b99f722d77411 (patch)
treeef321e72931fb7a4eb22c6f01af78b43150eac1e
parent8d160b9350b35ece2bac1669d8aa513622ca2a5b (diff)
[ruby/rdoc] Revert "chore: Remove unnecessary argument for `join` method"
This reverts commit https://github.com/ruby/rdoc/commit/4a1c74bc0a09. Since RDoc still supports ruby 2.6 which has not deprecated `$,`, the argument of `Array#join` is not unnecessary yet. https://github.com/ruby/rdoc/commit/72897d32ed
-rw-r--r--lib/rdoc/token_stream.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/token_stream.rb b/lib/rdoc/token_stream.rb
index adeef5b660..1ff4b0d09e 100644
--- a/lib/rdoc/token_stream.rb
+++ b/lib/rdoc/token_stream.rb
@@ -112,7 +112,7 @@ module RDoc::TokenStream
# Returns a string representation of the token stream
def tokens_to_s
- token_stream.compact.map { |token| token[:text] }.join
+ token_stream.compact.map { |token| token[:text] }.join ''
end
end