Skip to content

Commit d36911e

Browse files
committed
Fixes syntax issues in Simple networking page
1 parent 7bc8e23 commit d36911e

File tree

1 file changed

+1
-1
lines changed
  • Combine.playground/Pages/Simple networking.xcplaygroundpage

1 file changed

+1
-1
lines changed

Combine.playground/Pages/Simple networking.xcplaygroundpage/Contents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Combine
44
// MARK: - Non-combine approach
55

66
func fetch<T: Decodable>(_ url: URL,
7-
completion: @escaping (Result<T, Error>) -> Void) {
7+
completion: @escaping (Result<T, Error>) -> Void) {
88
URLSession.shared.dataTask(with: url) { data, response, error in
99
if let error = error {
1010
completion(.failure(error))

0 commit comments

Comments
 (0)