Permalink
Browse files

doc: Semver fix

  • Loading branch information...
1 parent 0a8730b commit 955a95d21e3abce87d50fd29a86b32ffe92d0fb9 @isaacs isaacs committed Jan 9, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/cli/semver.md
View
@@ -11,8 +11,8 @@ As a node module:
$ npm install semver
- semver.valid('1.2.3') // true
- semver.valid('a.b.c') // false
+ semver.valid('1.2.3') // '1.2.3'
+ semver.valid('a.b.c') // null
semver.clean(' =v1.2.3 ') // '1.2.3'
semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
semver.gt('1.2.3', '9.8.7') // false
@@ -84,7 +84,7 @@ The following range styles are supported:
* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
* `~1.2.3` := `>=1.2.3 <1.3.0`
* `~1.2` := `>=1.2.0 <1.3.0`
-* `~1` := `>=1.0.0 <1.1.0`
+* `~1` := `>=1.0.0 <2.0.0`
* `1.2.x` := `>=1.2.0 <1.3.0`
* `1.x` := `>=1.0.0 <2.0.0`

0 comments on commit 955a95d

Please sign in to comment.