Skip to content

Commit 28c0ca3

Browse files
authored
Fix docs typos (#2458)
1 parent 4cc6f56 commit 28c0ca3

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

documentation/2-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ const [response, buffer, json] = await Promise.all([responsePromise, bufferPromi
642642
**Type: `boolean`**\
643643
**Default: `false`**
644644

645-
If `true`, the promise will return the [Response body](3-streams.md#response-1) instead of the [Response object](3-streams.md#response-1).
645+
If `true`, the promise will return the [Response body](3-streams.md#response-2) instead of the [Response object](3-streams.md#response-2).
646646

647647
```js
648648
import got from 'got';

documentation/4-pagination.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ This option represents the `pagination` object.
110110
**Type: `Function`**\
111111
**Default: `response => JSON.parse(response.body)`**
112112

113-
A function that transforms [`Response`](3-streams.md#response-1) into an array of items.\
113+
A function that transforms [`Response`](3-streams.md#response-2) into an array of items.\
114114
This is where you should do the parsing.
115115

116116
#### `paginate`

documentation/migration-guides/axios.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ We deeply care about readability, so we renamed these options:
6767

6868
The response object is different as well:
6969

70-
- `response.data`[`response.body`](../3-streams.md#response-1)
71-
- `response.status`[`response.statusCode`](../3-streams.md#response-1)
72-
- `response.statusText`[`response.statusMessage`](../3-streams.md#response-1)
73-
- `response.config`[`response.request.options`](../3-streams.md#response-1)
74-
- [`response.request`](../3-streams.md#response-1)
70+
- `response.data`[`response.body`](../3-streams.md#response-2)
71+
- `response.status`[`response.statusCode`](../3-streams.md#response-2)
72+
- `response.statusText`[`response.statusMessage`](../3-streams.md#response-2)
73+
- `response.config`[`response.request.options`](../3-streams.md#response-2)
74+
- [`response.request`](../3-streams.md#response-2)
7575
- Returns [a Got stream](../3-streams.md).
7676

7777
The `response.headers` object remains the same.

documentation/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const url = 'https://httpbin.org/anything';
1111
const response = await got(url);
1212
```
1313

14-
The call returns a <code>Promise<[Response](3-streams.md#response-1)></code>. If the body contains JSON, it can be retrieved directly:
14+
The call returns a <code>Promise<[Response](3-streams.md#response-2)></code>. If the body contains JSON, it can be retrieved directly:
1515

1616
```js
1717
import got from 'got';

0 commit comments

Comments
 (0)