Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 13c42f9

Browse files
committed
Ensure that the HTML emitted for members is correct.
This was using the `symbol` property, which will use the type of the member’s related type. Instead, it should use the member being iterated over.
1 parent f49b9d7 commit 13c42f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/swift-doc/Supporting Types/Components/Members.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct Members: Component {
9393
<h2>\#(section.title)</h2>
9494
9595
\#(section.members.map { member -> HypertextLiteral.HTML in
96-
let descriptor = String(describing: type(of: symbol.api)).lowercased()
96+
let descriptor = String(describing: type(of: member.api)).lowercased()
9797

9898
return #"""
9999
<div role="article" class="\#(descriptor)" id=\#(member.id.description.lowercased().replacingOccurrences(of: " ", with: "-"))>

0 commit comments

Comments
 (0)