Skip to content

Commit

Permalink
unmixup ^ and ~ in "Version specifier format" (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff authored and KristofferC committed Jun 12, 2018
1 parent d9d6d15 commit 7455f79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stdlib/Pkg/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ The format of the version specifier is described in detail below.

Similar to other package managers, the Julia package manager respects [semantic versioning](https://semver.org/) (semver).
As an example, a version specifier is given as e.g. `1.2.3` is therefore assumed to be compatible with the versions `[1.2.3 - 2.0.0)` where `)` is a non-inclusive upper bound.
More specifically, a version specifier is either given as a **caret specifier**, e.g. `~1.2.3` or a **tilde specifier** `^1.2.3`.
Caret specifiers are the default and hence `1.2.3 == ~1.2.3`. The difference between a caret and tilde is described in the next section.
More specifically, a version specifier is either given as a **caret specifier**, e.g. `^1.2.3` or a **tilde specifier** `~1.2.3`.
Caret specifiers are the default and hence `1.2.3 == ^1.2.3`. The difference between a caret and tilde is described in the next section.

#### Caret specifiers

Expand All @@ -456,11 +456,11 @@ a version given as `0.a.b` is considered compatible with `0.a.c` if `a != 0` and

#### Tilde specifiers

A tilde specifier provides more limited upgrade possibilities. With a caret, only the last specified digit is allowed to increment by one.
A tilde specifier provides more limited upgrade possibilities. With a tilde, only the last specified digit is allowed to increment by one.
This gives the following example.

```
~1.2.3 = [1.2.3, 1.3.0)
~1.2.3 = [1.2.3, 1.2.4)
~1.2 = [1.2.0, 1.3.0)
~1 = [1.0.0, 2.0.0)
```

0 comments on commit 7455f79

Please sign in to comment.