Switch comment style to docstring

This commit is contained in:
David Smith 2023-05-26 09:59:26 -04:00
parent 1abcfb1f94
commit 3930d117f4
No known key found for this signature in database
GPG key ID: 979D8D09D9570EED

View file

@ -530,9 +530,9 @@ pub fn test(matches: &ArgMatches, triple: Triple) -> io::Result<i32> {
}
}
// Find the element of `options` with the smallest edit distance to
// `reference`. Returns a tuple containing the element and the distance, or
// `None` if the `options` `Vec` is empty.
/// Find the element of `options` with the smallest edit distance to
/// `reference`. Returns a tuple containing the element and the distance, or
/// `None` if the `options` `Vec` is empty.
fn nearest_match<'a>(reference: &str, options: &'a [String]) -> Option<(&'a String, usize)> {
options
.iter()