diff --git a/pkgs/cupertino_http/lib/src/cupertino_api.dart b/pkgs/cupertino_http/lib/src/cupertino_api.dart index 59d1187803..c03de11e91 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_api.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_api.dart @@ -132,7 +132,7 @@ class Error extends _ObjectHolder { /// A description of the error in the current locale e.g. /// 'A server with the specified hostname could not be found.' /// - /// See [NSError.locaizedDescription](https://developer.apple.com/documentation/foundation/nserror/1414418-localizeddescription) + /// See [NSError.localizedDescription](https://developer.apple.com/documentation/foundation/nserror/1414418-localizeddescription) String? get localizedDescription => toStringOrNull(_nsObject.localizedDescription); @@ -226,7 +226,7 @@ class URLSessionConfiguration set httpCookieAcceptPolicy(HTTPCookieAcceptPolicy value) => _nsObject.HTTPCookieAcceptPolicy = value.index; - // The maximun number of connections that a URLSession can have open to the + // The maximum number of connections that a URLSession can have open to the // same host. // // See [NSURLSessionConfiguration.HTTPMaximumConnectionsPerHost](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1407597-httpmaximumconnectionsperhost). @@ -512,7 +512,7 @@ class URLSessionTask extends _ObjectHolder { _nsObject.resume(); } - /// Suspends a task (prevents it from transfering data). + /// Suspends a task (prevents it from transferring data). /// /// See [NSURLSessionTask suspend](https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411565-suspend) void suspend() { @@ -1068,7 +1068,7 @@ class URLSession extends _ObjectHolder { onComplete: onComplete); } - /// A **copy** of the configuration for this sesion. + /// A **copy** of the configuration for this session. /// /// See [NSURLSession.configuration](https://developer.apple.com/documentation/foundation/nsurlsession/1411477-configuration) URLSessionConfiguration get configuration => URLSessionConfiguration._( diff --git a/pkgs/cupertino_http/lib/src/cupertino_client.dart b/pkgs/cupertino_http/lib/src/cupertino_client.dart index 45b6afdec2..b4b05969fd 100644 --- a/pkgs/cupertino_http/lib/src/cupertino_client.dart +++ b/pkgs/cupertino_http/lib/src/cupertino_client.dart @@ -213,7 +213,7 @@ class CupertinoClient extends BaseClient { @override Future send(BaseRequest request) async { - // The expected sucess case flow (without redirects) is: + // The expected success case flow (without redirects) is: // 1. send is called by BaseClient // 2. send starts the request with UrlSession.dataTaskWithRequest and waits // on a Completer