File tree Expand file tree Collapse file tree 2 files changed +18
-19
lines changed
Sources/TSPL/TSPL.docc/LanguageGuide Expand file tree Collapse file tree 2 files changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -316,19 +316,18 @@ you'll get compile-time error instead of introducing a bug.
316316> return [" IMG001" , " IMG99" , " IMG0404" ]
317317> }
318318> ```
319- >
320- >
321- > <!--
322- > - test: `sleep- in - toy- code`
323- >
324- > ```swifttest
325- > >> struct Data {} // Instead of actually importing Foundation
326- > -> func listPhotos (inGallery name : String ) async throws -> [String ] {
327- > try await Task.sleep (until : .now + .seconds (2 ), clock : .continuous )
328- > return [" IMG001" , " IMG99" , " IMG0404" ]
329- > }
330- > ```
331- > -->
319+
320+ <!--
321+ - test: `sleep- in - toy- code`
322+
323+ ```swifttest
324+ >> struct Data {} // Instead of actually importing Foundation
325+ -> func listPhotos (inGallery name : String ) async throws -> [String ] {
326+ try await Task.sleep (until : .now + .seconds (2 ), clock : .continuous )
327+ return [" IMG001" , " IMG99" , " IMG0404" ]
328+ }
329+ ```
330+ -->
332331
333332<!--
334333 TODO either add an example or maybe a short section
Original file line number Diff line number Diff line change @@ -2707,12 +2707,12 @@ print(differentNumbers.allEqual())
27072707> Note: If a conforming type satisfies the requirements for multiple constrained extensions
27082708> that provide implementations for the same method or property,
27092709> Swift uses the implementation corresponding to the most specialized constraints.
2710- >
2711- > <!--
2712- > TODO: It would be great to pull this out of a note,
2713- > but we should wait until we have a better narrative that shows how this
2714- > works with some examples.
2715- > -->
2710+
2711+ <!--
2712+ TODO: It would be great to pull this out of a note,
2713+ but we should wait until we have a better narrative that shows how this
2714+ works with some examples.
2715+ -->
27162716
27172717<!--
27182718 TODO: Other things to be included
You can’t perform that action at this time.
0 commit comments