Skip to content

Commit

Permalink
lang: Fix len_from_type typo in Option type error msg (#3526)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeonacid authored Jan 31, 2025
1 parent 55d74c6 commit 7ae6c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/derive/space/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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" => {
Expand Down

0 comments on commit 7ae6c3d

Please sign in to comment.