Skip to content

Commit

Permalink
Cleanup comment and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lun3x committed Nov 2, 2023
1 parent 1a837ff commit 8c372f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multi_index_map_derive/src/index_attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub(crate) struct ExtraAttributes {
}

impl ExtraAttributes {
/// Add a single trait from `#[soa_derive]`
/// Add a single trait from `#[multi_index_derive]`
fn add_derive(&mut self, ident: &proc_macro2::Ident) {
// We hardcode derive(Default) because this is always possible, so no need to explicitly add it here
if ident == "Default" {
Expand Down Expand Up @@ -92,7 +92,7 @@ pub(crate) fn get_extra_attributes(f: &DeriveInput) -> ExtraAttributes {
_ => {
emit_error!(
nested.span(),
"Invalid multi_index_derive attribute, should be one of [Clone]"
"Invalid multi_index_derive attribute, should be a deriveable trait, eg. Clone, Debug"
);
continue;
}
Expand Down

0 comments on commit 8c372f6

Please sign in to comment.