mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Switch comment style to docstring
This commit is contained in:
parent
1abcfb1f94
commit
3930d117f4
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue