Skip to content

Commit dd5f18d

Browse files
amartini51kavon
andcommitted
Fix typo in docs code example
(cherry picked from commit b57dbae) Co-authored-by: Kavon Farvardin <[email protected]>
1 parent c115193 commit dd5f18d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Misc.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ func _rethrowsViaClosure(_ fn: () throws -> ()) rethrows {
213213
/// func genericFunction<T>(t: T) { }
214214
/// func genericFunction<T>(t: T) where T: Copyable { }
215215
///
216-
/// let x = any MyProtocol
217-
/// let x = any MyProtocol & Copyable
216+
/// let x: any MyProtocol
217+
/// let x: any MyProtocol & Copyable
218218
///
219219
/// To suppress an implicit conformance to `Copyable` you write `~Copyable`.
220220
/// For example,

0 commit comments

Comments
 (0)