Skip to content

Commit 97790c0

Browse files
committed
Indent code listings, to match style used elsewhere
1 parent 6fa34bd commit 97790c0

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

stdlib/public/core/Misc.swift

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -199,34 +199,30 @@ func _rethrowsViaClosure(_ fn: () throws -> ()) rethrows {
199199
/// For example,
200200
/// all of the following pairs of declarations are equivalent:
201201
///
202-
/// ```swift
203-
/// struct MyStructure { }
204-
/// struct MyStructere: Copyable { }
202+
/// struct MyStructure { }
203+
/// struct MyStructere: Copyable { }
205204
///
206-
/// protocol MyProtocol { }
207-
/// protocol MyProtocol: Copyable { }
205+
/// protocol MyProtocol { }
206+
/// protocol MyProtocol: Copyable { }
208207
///
209-
/// protocol AnotherProtocol {
210-
/// associatedtype MyType
211-
/// associatedtype MyType: Copyable
212-
/// }
208+
/// protocol AnotherProtocol {
209+
/// associatedtype MyType
210+
/// associatedtype MyType: Copyable
211+
/// }
213212
///
214-
/// func genericFunction<T>(t: T) { }
215-
/// func genericFunction<T>(t: T) where T: Copyable { }
213+
/// func genericFunction<T>(t: T) { }
214+
/// func genericFunction<T>(t: T) where T: Copyable { }
216215
///
217-
/// let x = any MyProtocol
218-
/// let x = any MyProtocol & Copyable
219-
/// ```
216+
/// let x = any MyProtocol
217+
/// let x = any MyProtocol & Copyable
220218
///
221219
/// To suppress an implicit conformance to `Copyable` you write `~Copyable`.
222220
/// For example,
223221
/// only copyable types can conform to `MyProtocol` in the example above,
224222
/// but both copyable and noncopyable types
225223
/// can conform `NoRequirements` in the example below:
226224
///
227-
/// ```swift
228-
/// protocol NoRequirements: ~Copyable { }
229-
/// ```
225+
/// protocol NoRequirements: ~Copyable { }
230226
///
231227
/// Extensions to the `Copyable` protocol are not allowed.
232228
@_marker public protocol Copyable {}

0 commit comments

Comments
 (0)