Skip to content

Commit

Permalink
fix: correct is_prerelease() for SemVer
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalke committed Aug 26, 2021
1 parent 98d4f68 commit 0e99770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/semver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl SemVer {
}

pub fn is_prerelease(&self) -> bool {
self.0.pre.is_empty()
!self.0.pre.is_empty()
}

pub fn pre_clear(&mut self) {
Expand Down

0 comments on commit 0e99770

Please sign in to comment.