From dea363e8136478af17a83cd1b710fe71ffd8e2ed Mon Sep 17 00:00:00 2001 From: Dave Hrycyszyn Date: Thu, 23 Jan 2020 16:26:40 +0000 Subject: [PATCH] Minor docs formatting --- common/version-checker/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/version-checker/src/lib.rs b/common/version-checker/src/lib.rs index d6ae38d19e..48125479af 100644 --- a/common/version-checker/src/lib.rs +++ b/common/version-checker/src/lib.rs @@ -1,11 +1,11 @@ use semver::Version; use semver::VersionReq; -/// Checks whether given `version` is compatible with a given semantic -/// version requirement `req` according to major-minor semver rules. -/// The semantic version requirement can be passed as a full, concrete version -/// number, because that's what we'll have in our Cargo.toml files (e.g. 0.3.2). -/// The patch number in the requirement will be dropped and replaced with a wildcard (0.3.*) as all minor versions should be compatible with each other. +/// Checks whether given `version` is compatible with a given semantic version requirement `req` +/// according to major-minor semver rules. The semantic version requirement can be passed as a full, +/// concrete version number, because that's what we'll have in our Cargo.toml files (e.g. 0.3.2). +/// The patch number in the requirement gets dropped and replaced with a wildcard (0.3.*) as all +/// minor versions should be compatible with each other. pub fn is_compatible(version: &str, req: &str) -> bool { let version = Version::parse(version).unwrap(); let tmp = Version::parse(req).unwrap();