Skip to content

Commit

Permalink
Update src/compiler/crystal/tools/doc/type.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 Jul 22, 2024
1 parent af68606 commit 92c01a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/tools/doc/type.cr
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ class Crystal::Doc::Type

def doc
if (t = type).is_a?(NamedType) && t.name.starts_with?(PSEUDO_CLASS_PREFIX)
(@type.doc || "") + PSEUDO_CLASS_NOTE
"#{@type.doc}#{PSEUDO_CLASS_NOTE}"
else
@type.doc
end
Expand Down

0 comments on commit 92c01a0

Please sign in to comment.