Skip to content

Commit

Permalink
docs: fix some typos (yargs#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
helio-frota committed Nov 17, 2020
1 parent a9ab0a4 commit 39af319
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/api.md
Expand Up @@ -807,7 +807,7 @@ error message when this promise rejects
<a name="exit"></a>.exit(code, err)
---------
Manually indicate that the program should exit, and provide context about why we
wanted to exit. Follows the behaviour set by `.exitProcess()`.
wanted to exit. Follows the behavior set by `.exitProcess()`.

<a name="fail"></a>.fail(fn)
---------
Expand All @@ -816,7 +816,7 @@ Method to execute when a failure occurs, rather than printing the failure messag

`fn` is called with the failure message that would have been printed, the
`Error` instance originally thrown and yargs state when the failure
occured.
occurred.

```js
var argv = require('yargs/yargs')(process.argv.slice(2))
Expand Down Expand Up @@ -1308,7 +1308,7 @@ for details of this object

For additional configuration options, see [yargs-parser's configuration](https://github.com/yargs/yargs-parser#configuration).

_Note: configuraton should be top level keys on the `obj` passed to `parserConfiguration`, not populated under the configuration key, as in `yargs-parser`._
_Note: configuration should be top level keys on the `obj` passed to `parserConfiguration`, not populated under the configuration key, as in `yargs-parser`._

<a name="pkg-conf"></a>
.pkgConf(key, [cwd])
Expand Down
2 changes: 1 addition & 1 deletion docs/browser.md
@@ -1,6 +1,6 @@
# Running yargs in the browser

Newer versions of yargs have a `./browser.mjs` entrypoint, which can be used
Newer versions of yargs have a `./browser.mjs` entry point, which can be used
through a CDN like [unpkg.com](https://unpkg.com/) to load yargs directly in
the browser:

Expand Down
2 changes: 1 addition & 1 deletion docs/bundling.md
Expand Up @@ -10,7 +10,7 @@ Newer releases of yargs can run directly in modern browsers, take a look at

## ncc

If you are targetting Node.js with your bundle, we recommend using
If you are targeting Node.js with your bundle, we recommend using
[`@vercel/ncc`](https://www.npmjs.com/package/@vercel/ncc).

Given a CommonJS file, **index.js**:
Expand Down

0 comments on commit 39af319

Please sign in to comment.