From 9b7ca248f0496178eaeca775b474040b40645141 Mon Sep 17 00:00:00 2001 From: Michiel Vlootman Date: Sat, 21 Sep 2019 13:59:06 +0200 Subject: [PATCH] similarity.v: update a comment --- vlib/strings/similarity.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/strings/similarity.v b/vlib/strings/similarity.v index d3dbb6454f..1f733ee4e1 100644 --- a/vlib/strings/similarity.v +++ b/vlib/strings/similarity.v @@ -35,7 +35,7 @@ pub fn levenshtein_distance_percentage(a, b string) f32 { // implementation of Sørensen–Dice coefficient. // find the similarity between two strings. -// returns f64 between 0.0 (not similar) and 1.0 (exact match). +// returns coefficient between 0.0 (not similar) and 1.0 (exact match). pub fn dice_coefficient(s1, s2 string) f32 { if s1.len == 0 || s2.len == 0 { return 0.0 } if s1 == s2 { return 1.0 }