mirror of
https://github.com/openharmony/third_party_rust_version_check.git
synced 2026-07-01 21:04:00 -04:00
Fix doc typo: 'min_data' -> 'min_date'.
This commit is contained in:
committed by
Sergio Benitez
parent
a2e8411430
commit
96a6d6ccbe
+1
-1
@@ -110,7 +110,7 @@ fn get_version_and_date() -> Option<(Option<String>, Option<String>)> {
|
||||
///
|
||||
/// If the date cannot be retrieved or parsed, or if `min_date` could not be
|
||||
/// parsed, returns `None`. Otherwise returns a tuple where the first value is
|
||||
/// `true` if the installed `rustc` is at least from `min_data` and the second
|
||||
/// `true` if the installed `rustc` is at least from `min_date` and the second
|
||||
/// value is the date (in YYYY-MM-DD) of the installed `rustc`.
|
||||
pub fn is_min_date(min_date: &str) -> Option<(bool, String)> {
|
||||
if let Some((_, Some(actual_date_str))) = get_version_and_date() {
|
||||
|
||||
Reference in New Issue
Block a user