diff --git a/vlib/v/util/suggestions.v b/vlib/v/util/suggestions.v index a0849e362b..b64c8e101f 100644 --- a/vlib/v/util/suggestions.v +++ b/vlib/v/util/suggestions.v @@ -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{