浏览代码

lang: Fix `len_from_type` typo in `Option` type error msg (#3526)

Xeonacid 8 月之前
父节点
当前提交
7ae6c3d7c1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lang/derive/space/src/lib.rs

+ 1 - 1
lang/derive/space/src/lib.rs

@@ -132,7 +132,7 @@ fn len_from_type(ty: Type, attrs: &mut Option<VecDeque<TokenStream2>>) -> 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" => {