Skip to content

Commit

Permalink
Docs: Include crystal built-in constants in docs (#7623)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardiff authored Apr 3, 2019
1 parent 40d8b34 commit cfd5f2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/crystal/tools/doc/generator.cr
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ class Crystal::Doc::Generator

def must_include?(const : Crystal::Const)
return false if nodoc?(const)
return true if crystal_builtin?(const)

const.locations.try &.any? { |location| must_include? location }
end
Expand Down

0 comments on commit cfd5f2d

Please sign in to comment.