Skip to content

Commit

Permalink
Rename object to class for pseudo classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodywasishere committed Jul 22, 2024
1 parent 3d4d103 commit af68606
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/crystal/tools/doc/type.cr
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Crystal::Doc::Type
"Top Level Namespace"
when NamedType
if @generator.project_info.crystal_stdlib?
type.name.lchop(PSEUDO_OBJECT_PREFIX)
type.name.lchop(PSEUDO_CLASS_PREFIX)
else
type.name
end
Expand Down Expand Up @@ -414,8 +414,8 @@ class Crystal::Doc::Type
end

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

0 comments on commit af68606

Please sign in to comment.