Skip to content

Commit

Permalink
fix(docs): fix angle brackets in npm diff docs
Browse files Browse the repository at this point in the history
Emphasizing them like we do everywhere else to fix encoding errors and
for consistency.

Also removed the `<String>` from the type definition as we don't do that
anywhere else.

PR-URL: #2662
Credit: @ethomson
Close: #2662
Reviewed-by: @wraithgar
  • Loading branch information
ethomson authored and wraithgar committed Feb 11, 2021
1 parent ef687f5 commit 7e1e841
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/content/commands/npm-diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ of files for packages published to the npm registry.
When using a single package name (with no version or tag specifier) as an
argument, `npm diff` will work in a similar way to
[`npm-outdated`](npm-outdated) and reach for the registry to figure out
what current published version of the package named <pkg-name> will satisfy
its dependent declared semver-range. Once that specific version is known
`npm diff` will print diff patches comparing the current version of
<pkg-name> found in the local file system with that specific version
returned by the registry.
what current published version of the package named `<pkg-name>`
will satisfy its dependent declared semver-range. Once that specific
version is known `npm diff` will print diff patches comparing the
current version of `<pkg-name>` found in the local file system with
that specific version returned by the registry.
Given a package named `abbrev` that is currently installed:
Expand Down Expand Up @@ -155,7 +155,7 @@ located within the folder `./lib/` and changed lines of code within the
#### diff
* Type: Array<String>
* Type: Array
* Default: null
Defines npm package specifiers to compare using the `npm diff` command.
Expand Down

0 comments on commit 7e1e841

Please sign in to comment.