Skip to content

Commit c2989f3

Browse files
committed
Improve "informal requirement" comment
1 parent 2bbac42 commit c2989f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stdlib/public/core/CompilerProtocols.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,11 @@ public protocol StringInterpolationProtocol {
876876
/// that appear next in the string literal.
877877
mutating func appendLiteral(_ literal: StringLiteralType)
878878

879-
// Informal requirement: mutating func appendInterpolation(...)
879+
// Informal requirement: Any desired appendInterpolation overloads, e.g.:
880+
//
881+
// mutating func appendInterpolation<T>(_: T)
882+
// mutating func appendInterpolation(_: Int, radix: Int)
883+
// mutating func appendInterpolation<T: Encodable>(json: T) throws
880884
}
881885

882886
/// A type that can be initialized using a color literal (e.g.

0 commit comments

Comments
 (0)