Skip to content

Commit a4a60b4

Browse files
amartini51krilnon
andcommitted
Match function names across example.
Co-authored-by: Kyle Murray <kyle_murray@apple.com>
1 parent 8859935 commit a4a60b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/TSPL/TSPL.docc/LanguageGuide/Concurrency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ you can refactor that code into a synchronous function:
273273

274274
```swift
275275
func move(_ photoName: String, from source: String, to destination: String) {
276-
add(photoName, to: destination)
277-
remove(photoName, from: source)
276+
add(photoName, toGallery: destination)
277+
remove(photoName, fromGallery: source)
278278
}
279279
// ...
280280
let firstPhoto = await listPhotos(inGallery: "Summer Vacation")[0]

0 commit comments

Comments
 (0)