Skip to content

Commit

Permalink
Allow comments after :nodoc: marker (#6627)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija authored and RX14 committed Aug 31, 2018
1 parent d4605d7 commit 0d29bb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/crystal/tools/doc/generator.cr
Expand Up @@ -163,7 +163,8 @@ class Crystal::Doc::Generator
end

def nodoc?(str : String?)
str == ":nodoc:" || str == "nodoc"
return false unless str
str.starts_with?(":nodoc:") || str.starts_with?("nodoc")
end

def nodoc?(obj)
Expand Down

0 comments on commit 0d29bb1

Please sign in to comment.