From 673a2f4e664d793563d2da05a4e385abfee87bc0 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Wed, 31 Jan 2024 19:56:43 +0900 Subject: [PATCH] v2: fix typo in checker.v (#20697) --- vlib/v2/types/checker.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v2/types/checker.v b/vlib/v2/types/checker.v index 59056aef2f..9f25d5046e 100644 --- a/vlib/v2/types/checker.v +++ b/vlib/v2/types/checker.v @@ -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