Skip to content

Commit 473a6a8

Browse files
committed
Generalize categoryFootnotes to work on any sequence
1 parent 006d266 commit 473a6a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftDiagnostics/DiagnosticsFormatter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public struct DiagnosticsFormatter {
367367
/// - leadingText: text that is prefixed to the list of categories when
368368
/// there is at least one category to print.
369369
public func categoryFootnotes(
370-
_ categories: [DiagnosticCategory],
370+
_ categories: some Sequence<DiagnosticCategory>,
371371
leadingText: String = "\n"
372372
) -> String {
373373
let categoriesInOrder = categories.compactMap { category in

0 commit comments

Comments
 (0)