diff --git a/lang/derive/space/src/lib.rs b/lang/derive/space/src/lib.rs index deabb76b5d..d8c6e538ab 100644 --- a/lang/derive/space/src/lib.rs +++ b/lang/derive/space/src/lib.rs @@ -132,7 +132,7 @@ fn len_from_type(ty: Type, attrs: &mut Option>) -> TokenS quote!((1 + #type_len)) } else { - quote_spanned!(ident.span() => compile_error!("Invalid argument in Vec")) + quote_spanned!(ident.span() => compile_error!("Invalid argument in Option")) } } "Vec" => {