Skip to content

Commit 78cb1e2

Browse files
committed
Make semver::Version fields public
1 parent 9a9a70b commit 78cb1e2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libsemver/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ impl ToStr for Identifier {
7474
#[deriving(Clone, Eq)]
7575
pub struct Version {
7676
/// The major version, to be incremented on incompatible changes.
77-
priv major: uint,
77+
major: uint,
7878
/// The minor version, to be incremented when functionality is added in a
7979
/// backwards-compatible manner.
80-
priv minor: uint,
80+
minor: uint,
8181
/// The patch version, to be incremented when backwards-compatible bug
8282
/// fixes are made.
83-
priv patch: uint,
83+
patch: uint,
8484
/// The pre-release version identifier, if one exists.
85-
priv pre: ~[Identifier],
85+
pre: ~[Identifier],
8686
/// The build metadata, ignored when determining version precedence.
87-
priv build: ~[Identifier],
87+
build: ~[Identifier],
8888
}
8989

9090
impl ToStr for Version {

0 commit comments

Comments
 (0)