Skip to content

Commit

Permalink
v2: fix typo in checker.v (#20697)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltociear authored Jan 31, 2024
1 parent 382d765 commit 673a2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v2/types/checker.v
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ fn (mut c Checker) infer_generic_type(param_type Type, arg_type Type, mut type_m
if existing := type_map[name] {
// TODO: might need custom eq methods
if existing != typ && typ !is NamedType {
return error('${name} was previouly used as ${existing.name()}, got ${typ.name()}')
return error('${name} was previously used as ${existing.name()}, got ${typ.name()}')
}
}
type_map[name] = typ
Expand Down

0 comments on commit 673a2f4

Please sign in to comment.