Skip to content

Commit

Permalink
Revert "chore: Remove unnecessary argument for join method"
Browse files Browse the repository at this point in the history
This reverts commit 4a1c74b.

Since RDoc still supports ruby 2.6 which has not deprecated `$,`, the
argument of `Array#join` is not unnecessary yet.
  • Loading branch information
nobu committed Nov 16, 2023
1 parent 4a1c74b commit 72897d3
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 72897d3

Please sign in to comment.