@@ -62,7 +62,7 @@ impl Event {
6262 Ok ( Self { item, config } )
6363 }
6464
65- /// Returns the event definition .
65+ /// Returns the event definition.
6666 pub fn item ( & self ) -> & syn:: ItemStruct {
6767 & self . item
6868 }
@@ -92,8 +92,8 @@ impl Event {
9292 Ok ( matches ! ( attr. first( ) . kind( ) , ir:: AttributeArg :: Event ) )
9393 }
9494
95- /// Returns if the event is marked as anonymous, if true then no signature topic is
96- /// generated or emitted.
95+ /// Returns whether the event is marked as anonymous, if true then no signature topic
96+ /// is generated or emitted.
9797 pub fn anonymous ( & self ) -> bool {
9898 self . config . anonymous ( )
9999 }
@@ -148,7 +148,7 @@ impl TryFrom<syn::ItemStruct> for Event {
148148 if ink_attrs. is_anonymous ( ) && ink_attrs. signature_topic ( ) . is_some ( ) {
149149 return Err ( format_err_spanned ! (
150150 item_struct,
151- "cannot use use `anonymous` with `signature_topic`" ,
151+ "cannot use `anonymous` with `signature_topic`" ,
152152 ) ) ;
153153 }
154154 Ok ( Self {
@@ -322,7 +322,7 @@ mod tests {
322322 field_2: bool ,
323323 }
324324 } ,
325- "cannot use use `anonymous` with `signature_topic`" ,
325+ "cannot use `anonymous` with `signature_topic`" ,
326326 )
327327 }
328328
0 commit comments