From 6bab48f4fe93690667ec0b7549bdbf7c68cdf2b2 Mon Sep 17 00:00:00 2001 From: Malte-Thorben Bruns Date: Fri, 2 Oct 2015 15:09:57 +0200 Subject: [PATCH] doc: fix typos [ci skip] --- CHANGELOG.markdown | 2 +- README.markdown | 6 +++--- doc/api.markdown | 2 +- doc/plugins.markdown | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index 9f80fa9..875974e 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -1,6 +1,6 @@ # [rail](./README.markdown) ChangeLog -## 2015-10-01, [v0.8.0](https://github.com/skenqbx/rail/tree/v0.8.0) **_unstable_** +## 2015-10-02, [v0.8.0](https://github.com/skenqbx/rail/tree/v0.8.0) **_unstable_** ### Commits diff --git a/README.markdown b/README.markdown index 6f91de1..348916f 100644 --- a/README.markdown +++ b/README.markdown @@ -106,11 +106,11 @@ var client = new RAIL({ }, // load & configure the buffer plugin buffer: { - default: true // buffer all repsonses by default + default: true // buffer all responses by default }, // load & configure the json plugin json: { - auto: true // try to parse all reponses with content-type equal to application/json + auto: true // try to parse all responses with content-type equal to application/json }, // load & configure the redirect plugin redirect: { @@ -136,7 +136,7 @@ var call = client.call({ } else if (response.buffer) { console.log(response.buffer.toString()); - // ... or if a bailout happend (buffer max size exceeded) + // ... or if a bailout happened (buffer max size exceeded) } else if (response.buffer !== null) { // consume the response response.on('readable', function() { /* ... */ }); diff --git a/doc/api.markdown b/doc/api.markdown index b5ec645..164b749 100644 --- a/doc/api.markdown +++ b/doc/api.markdown @@ -223,7 +223,7 @@ _Copy_ all buffered chunks to `writable`. Empties the buffer and sets `replayBuffer.buffer` to `false`. ### replayBuffer.end() -Prevents further additon of chunks and clear the writable stream. +Prevents further addition of chunks and clear the writable stream. ### Event: 'end' Emitted when the buffer is ended. This is the last moment a can modify the request configuration. diff --git a/doc/plugins.markdown b/doc/plugins.markdown index 1c2278b..a44513c 100644 --- a/doc/plugins.markdown +++ b/doc/plugins.markdown @@ -54,7 +54,7 @@ Uses the `buffer` plugin. - `{boolean} auto` Enable auto-parsing when `Content-Type: application/json` - `{number} max` The maximum JSON size, defaults to `1048576` (1 MiB) -_Note_: When the JSON size exeeds the maximum size, it's not parsed. The `response.buffer` is still available for manual parsing, though. +_Note_: When the JSON size exceeds the maximum size, it's not parsed. The `response.buffer` is still available for manual parsing, though. **request options** @@ -96,7 +96,7 @@ Emitted when `request.end()` of a redirected request has been called. ## retry Conditional request retry. -Retry requests on connect errors, on specfifc http status codes and failed repsonse [validation](#validate). +Retry requests on connect errors, on specific http status codes and failed response [validation](#validate). **options**