Skip to content

Commit

Permalink
chore: fix some comments (#1312)
Browse files Browse the repository at this point in the history
### What

fix some comments

### Why

[TODO: Why this change is being made. Include any context required to
understand the why.]

### Known limitations

[TODO or N/A]

Signed-off-by: cuiweiyuan <[email protected].>
Co-authored-by: Leigh McCulloch <[email protected]>
  • Loading branch information
cuiweiyuan and leighmcculloch authored Aug 21, 2024
1 parent c3dd208 commit 00596bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion soroban-sdk/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::{
/// cryptographic hash function as its first parameter.
///
/// **__Note:_** A Hash should not be used with storage, since no guarantee can
/// be made about the Bytes stored as to whether they were infact from a secure
/// be made about the Bytes stored as to whether they were in fact from a secure
/// cryptographic hash function.
#[derive(Clone)]
#[repr(transparent)]
Expand Down
4 changes: 2 additions & 2 deletions soroban-sdk/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub trait TokenInterface {
///
/// The amount returned is the amount that spender is allowed to transfer
/// out of from's balance. When the spender transfers amounts, the allowance
/// will be reduced by the amount transfered.
/// will be reduced by the amount transferred.
///
/// # Arguments
///
Expand All @@ -101,7 +101,7 @@ pub trait TokenInterface {
/// The amount set is the amount that spender is approved to transfer out of
/// from's balance. The spender will be allowed to transfer amounts, and
/// when an amount is transferred the allowance will be reduced by the
/// amount transfered.
/// amount transferred.
///
/// # Arguments
///
Expand Down
2 changes: 1 addition & 1 deletion soroban-sdk/src/try_from_val_for_contract_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//!
//! The trait exists primarily to allow some special types, e.g.
//! [`crate::crypto::Hash`], to be used as inputs to contract functions without
//! otherwise being createable from a Val via the public TryFromVal trait, and
//! otherwise being creatable from a Val via the public TryFromVal trait, and
//! therefore not storeable.
//!
//! For types that can be used and converted everywhere, implementing TryFromVal
Expand Down
2 changes: 1 addition & 1 deletion soroban-spec-rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub fn generate_without_file(specs: &[ScSpecEntry]) -> TokenStream {
/// Rust code.
pub trait ToFormattedString {
/// Converts the value to a String that is pretty formatted. If there is any
/// error parsin the token stream the raw String version of the code is
/// error parsing the token stream the raw String version of the code is
/// returned instead.
fn to_formatted_string(&self) -> Result<String, Error>;
}
Expand Down

0 comments on commit 00596bb

Please sign in to comment.