Skip to content

Commit ad0e1cf

Browse files
authored
Fix some spelling (#885)
1 parent 74f9d3d commit ad0e1cf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkgs/cupertino_http/lib/src/cupertino_api.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class Error extends _ObjectHolder<ncb.NSError> {
132132
/// A description of the error in the current locale e.g.
133133
/// 'A server with the specified hostname could not be found.'
134134
///
135-
/// See [NSError.locaizedDescription](https://developer.apple.com/documentation/foundation/nserror/1414418-localizeddescription)
135+
/// See [NSError.localizedDescription](https://developer.apple.com/documentation/foundation/nserror/1414418-localizeddescription)
136136
String? get localizedDescription =>
137137
toStringOrNull(_nsObject.localizedDescription);
138138

@@ -226,7 +226,7 @@ class URLSessionConfiguration
226226
set httpCookieAcceptPolicy(HTTPCookieAcceptPolicy value) =>
227227
_nsObject.HTTPCookieAcceptPolicy = value.index;
228228

229-
// The maximun number of connections that a URLSession can have open to the
229+
// The maximum number of connections that a URLSession can have open to the
230230
// same host.
231231
//
232232
// See [NSURLSessionConfiguration.HTTPMaximumConnectionsPerHost](https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1407597-httpmaximumconnectionsperhost).
@@ -512,7 +512,7 @@ class URLSessionTask extends _ObjectHolder<ncb.NSURLSessionTask> {
512512
_nsObject.resume();
513513
}
514514

515-
/// Suspends a task (prevents it from transfering data).
515+
/// Suspends a task (prevents it from transferring data).
516516
///
517517
/// See [NSURLSessionTask suspend](https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411565-suspend)
518518
void suspend() {
@@ -1066,7 +1066,7 @@ class URLSession extends _ObjectHolder<ncb.NSURLSession> {
10661066
onComplete: onComplete);
10671067
}
10681068

1069-
/// A **copy** of the configuration for this sesion.
1069+
/// A **copy** of the configuration for this session.
10701070
///
10711071
/// See [NSURLSession.configuration](https://developer.apple.com/documentation/foundation/nsurlsession/1411477-configuration)
10721072
URLSessionConfiguration get configuration => URLSessionConfiguration._(

pkgs/cupertino_http/lib/src/cupertino_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class CupertinoClient extends BaseClient {
213213

214214
@override
215215
Future<StreamedResponse> send(BaseRequest request) async {
216-
// The expected sucess case flow (without redirects) is:
216+
// The expected success case flow (without redirects) is:
217217
// 1. send is called by BaseClient
218218
// 2. send starts the request with UrlSession.dataTaskWithRequest and waits
219219
// on a Completer

0 commit comments

Comments
 (0)