Skip to content

Commit

Permalink
[ruby/rdoc] Revert "chore: Remove unnecessary argument for join met…
Browse files Browse the repository at this point in the history
…hod"

This reverts commit ruby/rdoc@4a1c74bc0a09.

Since RDoc still supports ruby 2.6 which has not deprecated `$,`, the
argument of `Array#join` is not unnecessary yet.

ruby/rdoc@72897d32ed
  • Loading branch information
nobu authored and matzbot committed Nov 16, 2023
1 parent 8d160b9 commit e374512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdoc/token_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def token_stream
# 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

0 comments on commit e374512

Please sign in to comment.