Skip to content

Commit

Permalink
Update documentation.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
  • Loading branch information
nobodywasishere and Sija authored Jun 13, 2024
1 parent d3b5bf6 commit f1bb8a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/compiler/crystal/tools/documentation.cr
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ module Crystal

def to_text(io : IO)
io.puts message
documentations.try do |arr|
arr.each do |doc, loc|
io.puts "#{loc}\n#{doc}\n"
end
documentations.try &.each do |doc, loc|
io.puts "#{loc}\n#{doc}\n"
end
end
end
Expand Down

0 comments on commit f1bb8a7

Please sign in to comment.