Skip to content

Commit 196be6f

Browse files
authored
chore: fix some comments (#2562)
Signed-off-by: ledigang <[email protected]>
1 parent 70eaf2b commit 196be6f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/schema-derive/src/query_responses.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn parse_query(
150150
Ok((query, return_val))
151151
}
152152

153-
/// Extract the nested query -> response mapping out of an enum variant.
153+
/// Extract the nested query -> response mapping out of an enum variant.
154154
fn parse_subquery(ctx: &Context, v: &Variant, schema_backend: SchemaBackend) -> syn::Result<Expr> {
155155
let crate_name = &ctx.crate_name;
156156
let submsg = match v.fields {

packages/std/src/math/signed_decimal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ impl SignedDecimal {
442442
SignedDecimal::checked_from_ratio(self.numerator(), other.numerator())
443443
}
444444

445-
/// Computes `self % other`, returning an `DivideByZeroError` if `other == 0`.
445+
/// Computes `self % other`, returning a `DivideByZeroError` if `other == 0`.
446446
pub fn checked_rem(self, other: Self) -> Result<Self, DivideByZeroError> {
447447
self.0
448448
.checked_rem(other.0)

packages/std/src/math/signed_decimal_256.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ impl SignedDecimal256 {
455455
SignedDecimal256::checked_from_ratio(self.numerator(), other.numerator())
456456
}
457457

458-
/// Computes `self % other`, returning an `DivideByZeroError` if `other == 0`.
458+
/// Computes `self % other`, returning a `DivideByZeroError` if `other == 0`.
459459
pub fn checked_rem(self, other: Self) -> Result<Self, DivideByZeroError> {
460460
self.0
461461
.checked_rem(other.0)

packages/vm-derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use maybe;
2323
/// # use cosmwasm_vm_derive::hash_function;
2424
/// #[hash_function(const_name = "HASH")]
2525
/// fn foo() {
26-
/// println!("Hello, world!");
26+
/// println!("Hello, world!");
2727
/// }
2828
/// ```
2929
#[proc_macro_attribute]

0 commit comments

Comments
 (0)