Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed May 25, 2020
1 parent 4396af2 commit 2a9e42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/version_req.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ impl VersionReq {
///
/// This example demonstrates error handling, and will panic.
///
/// ```should-panic
/// ```should_panic
/// use semver::VersionReq;
///
/// let version = match VersionReq::parse("not a version") {
/// Ok(version) => version,
/// Err(e) => panic!("There was a problem parsing: {}", e),
/// }
/// };
/// ```
///
/// # Errors
Expand Down

0 comments on commit 2a9e42b

Please sign in to comment.