Skip to content

Commit

Permalink
Fix incorrect comment
Browse files Browse the repository at this point in the history
This file has a lot of what-commenting, somewhat by necessity,
because regular expressions.

Mostly that's OK, but occasionally it diverges.

Found while tweeting https://twitter.com/izs/status/672857319739232256
  • Loading branch information
isaacs committed Dec 4, 2015
1 parent 8e33a30 commit adaf9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion semver.js
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ function replaceTilde(comp, loose) {
else if (isX(m))
ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
else if (isX(p))
// ~1.2 == >=1.2.0- <1.3.0-
// ~1.2 == >=1.2.0 <1.3.0
ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
else if (pr) {
debug('replaceTilde pr', pr);
Expand Down

0 comments on commit adaf9b0

Please sign in to comment.