Skip to content

Commit 6939ee3

Browse files
authored
docs(prelude, primitives, storage): fix typos in comments (#2593)
* Update lib.rs * Update macros.rs * Update mapping.rs * Update mapping.rs
1 parent 9159853 commit 6939ee3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/prelude/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern crate alloc;
3131

3232
use cfg_if::cfg_if;
3333

34-
/// A well know selector reserved for the message required to be defined
34+
/// A well known selector reserved for the message required to be defined
3535
/// alongside a wildcard selector. See [IIP-2](https://github.com/use-ink/ink/issues/1676).
3636
///
3737
/// Calculated from `selector_bytes!("IIP2_WILDCARD_COMPLEMENT")`

crates/primitives/src/sol/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
///
1717
/// # Note
1818
///
19-
/// The callee is typical a macro that implements a trait for tuples.
19+
/// The callee is a typical macro that implements a trait for tuples.
2020
///
2121
/// We follow the Rust standard library's convention of implementing traits for tuples up
2222
/// to twelve items long.

crates/storage/src/lazy/mapping.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use scale::{
4040
/// # Important
4141
///
4242
/// The mapping requires its own pre-defined storage key where to store values. By
43-
/// default, the is automatically calculated using [`AutoKey`](crate::traits::AutoKey)
43+
/// default, the key is automatically calculated using [`AutoKey`](crate::traits::AutoKey)
4444
/// during compilation. However, anyone can specify a storage key using
4545
/// [`ManualKey`](crate::traits::ManualKey). Specifying the storage key can be helpful for
4646
/// upgradeable contracts or you want to be resistant to future changes of storage key
@@ -183,7 +183,7 @@ where
183183
///
184184
/// # Panics
185185
///
186-
/// Traps if the the encoded `key` or `value` doesn't fit into the static buffer.
186+
/// Traps if the encoded `key` or `value` doesn't fit into the static buffer.
187187
#[inline]
188188
pub fn get<Q>(&self, key: Q) -> Option<V>
189189
where
@@ -256,7 +256,7 @@ where
256256
/// - `Some(Err(_))` if either (a) the encoded key doesn't fit into the static buffer
257257
/// or (b) the value existed but its length exceeds the static buffer size.
258258
/// - `None` if there was no value under this mapping key.
259-
////
259+
///
260260
/// # Warning
261261
///
262262
/// This method uses the

0 commit comments

Comments
 (0)