Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/engine/src/exec_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl ExecContext {
self.callee.expect("no callee has been set")
}

/// Resets the execution context
/// Resets the execution context.
pub fn reset(&mut self) {
*self = Default::default();
}
Expand Down
8 changes: 4 additions & 4 deletions crates/ink/ir/src/ir/event/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl Event {
Ok(Self { item, config })
}

/// Returns the event definition .
/// Returns the event definition.
pub fn item(&self) -> &syn::ItemStruct {
&self.item
}
Expand Down Expand Up @@ -92,7 +92,7 @@ impl Event {
Ok(matches!(attr.first().kind(), ir::AttributeArg::Event))
}

/// Returns if the event is marked as anonymous, if true then no signature topic is
/// Returns whether the event is marked as anonymous, if true then no signature topic is
/// generated or emitted.
pub fn anonymous(&self) -> bool {
self.config.anonymous()
Expand Down Expand Up @@ -148,7 +148,7 @@ impl TryFrom<syn::ItemStruct> for Event {
if ink_attrs.is_anonymous() && ink_attrs.signature_topic().is_some() {
return Err(format_err_spanned!(
item_struct,
"cannot use use `anonymous` with `signature_topic`",
"cannot use `anonymous` with `signature_topic`",
));
}
Ok(Self {
Expand Down Expand Up @@ -322,7 +322,7 @@ mod tests {
field_2: bool,
}
},
"cannot use use `anonymous` with `signature_topic`",
"cannot use `anonymous` with `signature_topic`",
)
}

Expand Down
Loading