From dd5699f7f0dcf9e5ad1c5549f3eaacaa1715f8eb Mon Sep 17 00:00:00 2001 From: Daniel Kaplan Date: Fri, 19 Jan 2024 07:44:34 -0800 Subject: [PATCH] docs(update): Fix a typo and remove unneeded statement (#7152) --- docs/lib/content/commands/npm-update.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/lib/content/commands/npm-update.md b/docs/lib/content/commands/npm-update.md index 7e4f0564d17d7..2bebaf554f50a 100644 --- a/docs/lib/content/commands/npm-update.md +++ b/docs/lib/content/commands/npm-update.md @@ -76,7 +76,7 @@ However, if `app`'s `package.json` contains: ``` In this case, running `npm update` will install `dep1@1.1.2`. Even though the -`latest` tag points to `1.2.2`, this version do not satisfy `~1.1.1`, which is +`latest` tag points to `1.2.2`, this version does not satisfy `~1.1.1`, which is equivalent to `>=1.1.1 <1.2.0`. So the highest-sorting version that satisfies `~1.1.1` is used, which is `1.1.2`. @@ -90,8 +90,7 @@ Suppose `app` has a caret dependency on a version below `1.0.0`, for example: } ``` -`npm update` will install `dep1@0.2.0`, because there are no other -versions which satisfy `^0.2.0`. +`npm update` will install `dep1@0.2.0`. If the dependence were on `^0.4.0`: