Skip to content

Commit adaf9b0

Browse files
committed
Fix incorrect comment
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
1 parent 8e33a30 commit adaf9b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

semver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ function replaceTilde(comp, loose) {
836836
else if (isX(m))
837837
ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
838838
else if (isX(p))
839-
// ~1.2 == >=1.2.0- <1.3.0-
839+
// ~1.2 == >=1.2.0 <1.3.0
840840
ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
841841
else if (pr) {
842842
debug('replaceTilde pr', pr);

0 commit comments

Comments
 (0)