Skip to content

Commit 2b3baf6

Browse files
authored
Fix grammar issues in contracts and IBC code comments (#2541)
1 parent b739d13 commit 2b3baf6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

contracts/cyberpunk/src/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn execute_message_loop(env: Env) -> Result<Response, ContractError> {
9898
fn execute_allocate_large_memory(pages: u32) -> Result<Response, ContractError> {
9999
// We create memory pages explicitly since Rust's default allocator seems to be clever enough
100100
// to not grow memory for unused capacity like `Vec::<u8>::with_capacity(100 * 1024 * 1024)`.
101-
// Even with std::alloc::alloc the memory did now grow beyond 1.5 MiB.
101+
// Even with std::alloc::alloc the memory did not grow beyond 1.5 MiB.
102102

103103
#[cfg(target_arch = "wasm32")]
104104
{

contracts/hackatom/src/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn do_message_loop(env: Env) -> Result<Response, HackError> {
164164
fn do_allocate_large_memory(pages: u32) -> Result<Response, HackError> {
165165
// We create memory pages explicitly since Rust's default allocator seems to be clever enough
166166
// to not grow memory for unused capacity like `Vec::<u8>::with_capacity(100 * 1024 * 1024)`.
167-
// Even with std::alloc::alloc the memory did now grow beyond 1.5 MiB.
167+
// Even with std::alloc::alloc the memory did not grow beyond 1.5 MiB.
168168

169169
#[cfg(target_arch = "wasm32")]
170170
{

contracts/hackatom/src/msg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct MigrateMsg {
2121
}
2222

2323
/// SudoMsg is only exposed for internal Cosmos SDK modules to call.
24-
/// This is showing how we can expose "admin" functionality than can not be called by
24+
/// This is showing how we can expose "admin" functionality that can not be called by
2525
/// external users or contracts, but only trusted (native/Go) code in the blockchain
2626
#[cw_serde]
2727
pub enum SudoMsg {

contracts/ibc-reflect-send/src/ibc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn ibc_channel_connect(
5858

5959
let channel_id = &channel.endpoint.channel_id;
6060

61-
// create an account holder the channel exists (not found if not registered)
61+
// create an account holder when the channel exists (not found if not registered)
6262
let data = AccountData::default();
6363
save_account(deps.storage, channel_id, &data)?;
6464

@@ -110,7 +110,7 @@ pub fn ibc_packet_ack(
110110
env: Env,
111111
msg: IbcPacketAckMsg,
112112
) -> StdResult<IbcBasicResponse> {
113-
// which local channel was this packet send from
113+
// which local channel was this packet sent from
114114
let caller = msg.original_packet.src.channel_id;
115115
// we need to parse the ack based on our request
116116
let packet: PacketMsg = from_json(msg.original_packet.data)?;

0 commit comments

Comments
 (0)