Skip to content

Commit 9710355

Browse files
committed
Match code listing markup used elsewhere.
(cherry picked from commit 6c443e5)
1 parent 1a6b7fb commit 9710355

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

stdlib/public/core/Sendable.swift

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,13 @@
8686
/// or by writing `@Sendable` before the closure's parameters ---
8787
/// for example:
8888
///
89-
/// ```
90-
/// let sendableClosure = { @Sendable (number: Int) -> String in
91-
/// if number > 12 {
92-
/// return "More than a dozen."
93-
/// } else {
94-
/// return "Less than a dozen"
89+
/// let sendableClosure = { @Sendable (number: Int) -> String in
90+
/// if number > 12 {
91+
/// return "More than a dozen."
92+
/// } else {
93+
/// return "Less than a dozen"
94+
/// }
9595
/// }
96-
/// }
97-
/// ```
9896
///
9997
/// ### Sendable Tuples
10098
///
@@ -108,9 +106,7 @@
108106
///
109107
/// Use an unchecked conformance to `Sendable` instead --- for example:
110108
///
111-
/// ```
112-
/// struct MyStructure: @unchecked Sendable { ... }
113-
/// ```
109+
/// struct MyStructure: @unchecked Sendable { ... }
114110
@available(*, deprecated, message: "Use @unchecked Sendable instead")
115111
@_marker public protocol UnsafeSendable: Sendable { }
116112

0 commit comments

Comments
 (0)