v.util.suggestions: fix hash.crc32.Crc32 case
parent
f300f787f3
commit
65891f54ed
|
@ -38,11 +38,11 @@ pub fn new_suggestion(wanted string, possibilities []string) Suggestion {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (mut s Suggestion) add(val string) {
|
pub fn (mut s Suggestion) add(val string) {
|
||||||
if val == s.wanted {
|
if val in [ s.wanted, s.swanted ] {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
sval := short_module_name(val)
|
sval := short_module_name(val)
|
||||||
if sval == s.wanted {
|
if sval in [ s.wanted, s.swanted ] {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
s.known << Possibility{
|
s.known << Possibility{
|
||||||
|
|
Loading…
Reference in New Issue