diff --git a/Sources/DocCArchive/Schema_0_1/Content/CodeListing.swift b/Sources/DocCArchive/Schema_0_1/Content/CodeListing.swift index 510975d..a444548 100644 --- a/Sources/DocCArchive/Schema_0_1/Content/CodeListing.swift +++ b/Sources/DocCArchive/Schema_0_1/Content/CodeListing.swift @@ -9,12 +9,14 @@ extension DocCArchive.DocCSchema_0_1.Content { public struct CodeListing: Equatable, CustomStringConvertible, Codable { - public var syntax : String + public var syntax : String? public var code : [ String ] public var description: String { - return syntax.isEmpty ? "" - : "" + guard let syntax = syntax, !syntax.isEmpty else { + return "" + } + return "" } } }