소스 검색

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" => {