Skip to content

Commit 5f6fcae

Browse files
authored
Fix some minor spelling and grammar mistakes (#1239)
1 parent b7ec613 commit 5f6fcae

File tree

16 files changed

+21
-21
lines changed

16 files changed

+21
-21
lines changed

.github/ISSUE_TEMPLATE/2--package-http---i-found-a-bug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Please describe the bug and how to reproduce it.
1212

1313
Note that if the bug can also be reproduced when going through the interfaces provided by `dart:html` or `dart:io` directly the bug should be filed against the Dart SDK: https://github.com/dart-lang/sdk/issues
1414

15-
A failure to make an http request is more often a problem with the environment than with the client.
15+
A failure to make an HTTP request is more often a problem with the environment than with the client.

pkgs/cronet_http/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Using [Cronet][], rather than the socket-based
2323

2424
## Using
2525

26-
The easiest way to use this library is via the the high-level interface
26+
The easiest way to use this library is via the high-level interface
2727
defined by [package:http Client][].
2828

2929
This approach allows the same HTTP code to be used on all platforms, while

pkgs/cronet_http/example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class _HomePageState extends State<HomePage> {
6363
}
6464

6565
// Get the list of books matching `query`.
66-
// The `get` call will automatically use the `client` configurated in `main`.
66+
// The `get` call will automatically use the `client` configured in `main`.
6767
Future<List<Book>> _findMatchingBooks(String query) async {
6868
final response = await _client.get(
6969
Uri.https(

pkgs/cupertino_http/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A macOS/iOS Flutter plugin that provides access to the
77
## Motivation
88

99
Using the [Foundation URL Loading System][], rather than the socket-based
10-
[dart:io HttpClient][] implemententation, has several advantages:
10+
[dart:io HttpClient][] implementation, has several advantages:
1111

1212
1. It automatically supports iOS/macOS platform features such VPNs and HTTP
1313
proxies.
@@ -17,7 +17,7 @@ Using the [Foundation URL Loading System][], rather than the socket-based
1717

1818
## Using
1919

20-
The easiest way to use this library is via the the high-level interface
20+
The easiest way to use this library is via the high-level interface
2121
defined by [package:http Client][].
2222

2323
This approach allows the same HTTP code to be used on all platforms, while

pkgs/cupertino_http/example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class _HomePageState extends State<HomePage> {
6262
}
6363

6464
// Get the list of books matching `query`.
65-
// The `get` call will automatically use the `client` configurated in `main`.
65+
// The `get` call will automatically use the `client` configured in `main`.
6666
Future<List<Book>> _findMatchingBooks(String query) async {
6767
final response = await _client.get(
6868
Uri.https(

pkgs/cupertino_http/lib/src/cupertino_web_socket.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class CupertinoWebSocket implements WebSocket {
8484
// called and `_connectionClosed` is a no-op.
8585
// 2. we sent a close Frame (through `close()`) and `_connectionClosed`
8686
// is a no-op.
87-
// 3. an error occured (e.g. network failure) and `_connectionClosed`
87+
// 3. an error occurred (e.g. network failure) and `_connectionClosed`
8888
// will signal that and close `event`.
8989
webSocket._connectionClosed(
9090
1006, Data.fromList('abnormal close'.codeUnits));

pkgs/flutter_http_example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ the Dart virtual machine, meaning all platforms except the web browser.
2424
This library used to create `package:http` `Client`s when the app is run inside
2525
a web browser.
2626

27-
Web configuration must be done in a seperate library because Dart code cannot
27+
Web configuration must be done in a separate library because Dart code cannot
2828
import `dart:ffi` or `dart:io` when run in a web browser.
2929

3030
### `main.dart`

pkgs/flutter_http_example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class _HomePageState extends State<HomePage> {
5959
}
6060

6161
// Get the list of books matching `query`.
62-
// The `get` call will automatically use the `client` configurated in `main`.
62+
// The `get` call will automatically use the `client` configured in `main`.
6363
Future<List<Book>> _findMatchingBooks(String query) async {
6464
final response = await _client.get(
6565
Uri.https(

pkgs/http/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ There are multiple implementations of the `package:http` [`Client`][client] inte
119119
You can change implementations without changing your application code, except
120120
for a few lines of [configuration](#2-configure-the-http-client).
121121

122-
Some well supported implementations are:
122+
Some well-supported implementations are:
123123

124124
| Implementation | Supported Platforms | SDK | Caching | HTTP3/QUIC | Platform Native |
125125
| -------------- | ------------------- | ----| ------- | ---------- | --------------- |
@@ -130,7 +130,7 @@ Some well supported implementations are:
130130
| [`package:fetch_client`][fetch][`FetchClient`][fetchclient] | Web | Dart, Flutter | ✅︎ | ✅︎ | ✅︎ |
131131

132132
> [!TIP]
133-
> If you are writing a Dart package or Flutter pluggin that uses
133+
> If you are writing a Dart package or Flutter plugin that uses
134134
> `package:http`, you should not depend on a particular [`Client`][client]
135135
> implementation. Let the application author decide what implementation is
136136
> best for their project. You can make that easier by accepting an explicit
@@ -145,7 +145,7 @@ Some well supported implementations are:
145145
146146
## Configuration
147147
148-
To use a HTTP client implementation other than the default, you must:
148+
To use an HTTP client implementation other than the default, you must:
149149
1. Add the HTTP client as a dependency.
150150
2. Configure the HTTP client.
151151
3. Connect the HTTP client to the code that uses it.
@@ -204,7 +204,7 @@ Client httpClient() {
204204
#### Supporting browser and native
205205

206206
If your application can be run in the browser and natively, you must put your
207-
browser and native configurations in seperate files and import the correct file
207+
browser and native configurations in separate files and import the correct file
208208
based on the platform.
209209

210210
For example:
@@ -250,7 +250,7 @@ void main() {
250250
```
251251

252252
In Flutter, you can use a one of many
253-
[state mangement approaches][flutterstatemanagement].
253+
[state management approaches][flutterstatemanagement].
254254

255255
If you depend on code that uses top-level functions (e.g. `http.post`) or
256256
calls the [`Client()`][clientconstructor] constructor, then you can use

pkgs/http/lib/src/response.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Response extends BaseResponse {
7171
Encoding _encodingForHeaders(Map<String, String> headers) =>
7272
encodingForCharset(_contentTypeForHeaders(headers).parameters['charset']);
7373

74-
/// Returns the [MediaType] object for the given headers's content-type.
74+
/// Returns the [MediaType] object for the given headers' content-type.
7575
///
7676
/// Defaults to `application/octet-stream`.
7777
MediaType _contentTypeForHeaders(Map<String, String> headers) {

0 commit comments

Comments
 (0)