algo abbreviation code uses string.Join instead of list_string (the latter method is redundant, should be removed)
This commit is contained in:
1 parent
3da52b350f
commit
fbd8bbd4a8
1 file changed
+1
-1
@@ -152,7 +152,7 @@ namespace mbts.spark {
|
||||
candidate = single_word;
|
||||
}
|
||||
} else {
|
||||
candidate = words.Take(2).Select(w => w.Substring(0, 1)).list_string(string.Empty);
|
||||
candidate = string.Join(string.Empty, words.Take(2).Select(w => w.Substring(0, 1)));
|
||||
}
|
||||
}
|
||||
return candidate.ToUpper();
|
||||
|
||||
Reference in new issue
Block a user