Skip to content

Commit

Permalink
fix(semver): bump_minor and bump_major (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpizenberg authored Nov 15, 2020
1 parent 215e3f4 commit 3aa9750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ impl SemanticVersion {

/// Bump the minor number of a version.
pub fn bump_minor(self) -> Self {
Self::new(self.major, self.minor + 1, self.patch)
Self::new(self.major, self.minor + 1, 0)
}

/// Bump the major number of a version.
pub fn bump_major(self) -> Self {
Self::new(self.major + 1, self.minor, self.patch)
Self::new(self.major + 1, 0, 0)
}
}

Expand Down

0 comments on commit 3aa9750

Please sign in to comment.