Skip to content

Commit 24dc461

Browse files
committed
chore: minor improvement for docs
Signed-off-by: ledigang <[email protected]>
1 parent 55b5508 commit 24dc461

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/engine/src/exec_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl ExecContext {
6161
self.callee.expect("no callee has been set")
6262
}
6363

64-
/// Resets the execution context
64+
/// Resets the execution context.
6565
pub fn reset(&mut self) {
6666
*self = Default::default();
6767
}

crates/ink/ir/src/ir/event/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)