mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.util.suggestions: fix hash.crc32.Crc32 case
This commit is contained in:
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) {
|
||||
if val == s.wanted {
|
||||
if val in [ s.wanted, s.swanted ] {
|
||||
return
|
||||
}
|
||||
sval := short_module_name(val)
|
||||
if sval == s.wanted {
|
||||
if sval in [ s.wanted, s.swanted ] {
|
||||
return
|
||||
}
|
||||
s.known << Possibility{
|
||||
|
Loading…
Reference in New Issue
Block a user