Skip to content

Commit 563c44f

Browse files
authored
Fix typo in edu note on StringInterpolationProtocol
1 parent 904477d commit 563c44f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

userdocs/diagnostics/string-interpolation-conformance.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ In addition to its formal requirements, `init(literalCapacity:interpolationCount
1111

1212
There are no restrictions on an `appendInterpolation` method's argument list, generic parameters, availability, or error-throwing behavior.
1313

14-
If `appendInterpolation` is overloaded, the Swift compiler will choose an appropriate overload using the labels and argument types of each interpolation. When choosing an overload, any accessible `appendInterpolation` instance method may be used, even if it does not meet all of the requirements above. However, if a `StringInterpolationProtocol` conformer doesn't have any `appendInterpolation` methods which meet all of the requirments, an error will be reported at compile time.
14+
If `appendInterpolation` is overloaded, the Swift compiler will choose an appropriate overload using the labels and argument types of each interpolation. When choosing an overload, any accessible `appendInterpolation` instance method may be used, even if it does not meet all of the requirements above. However, if a `StringInterpolationProtocol` conformer doesn't have any `appendInterpolation` methods which meet all of the requirements, an error will be reported at compile time.
1515

16-
To learn more about customizing string interpolation behavior, see the standard library documentation of the `ExpressibleByStringInterpolation` and `StringInterpolationProtocol` protocols.
16+
To learn more about customizing string interpolation behavior, see the standard library documentation of the `ExpressibleByStringInterpolation` and `StringInterpolationProtocol` protocols.

0 commit comments

Comments
 (0)