Browse Source

Fix typo in AdvancedUsage.md (#3623)

* Fix typo in AdvancedUsage.md

* Update Documentation/AdvancedUsage.md

Co-authored-by: Jon Shier <jon@jonshier.com>

Co-authored-by: Jon Shier <jon@jonshier.com>
Elon Park 3 years ago
parent
commit
51d6710012
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Documentation/AdvancedUsage.md

+ 1 - 1
Documentation/AdvancedUsage.md

@@ -1285,7 +1285,7 @@ By default, `DataTask` and `DownloadTask` values do not cancel the underlying re
 ```swift
 let request = AF.request(...) // Creates the DataRequest.
 let task = Task { // Produces a `Task<DataResponse<TestResponse, AFError>, Never> value.
-    await request.serializingDecodable(TestResponse.self, automaticallyCancelling: true).response
+    await request.serializingDecodable(TestResponse.self).response
 }
 
 // Later...