Skip to content

Commit bce535b

Browse files
authored
chore: fix docs, typos (#1023)
1 parent 534c90e commit bce535b

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

crates/primitives/src/signed/int.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use ruint::{BaseConvertError, Uint, UintTryFrom, UintTryTo};
1313
///
1414
/// ## Aliases
1515
///
16-
/// We provide aliases for every bit-width divisble by 8, from 8 to 256. These
16+
/// We provide aliases for every bit-width divisible by 8, from 8 to 256. These
1717
/// are located in [`crate::aliases`] and are named `I256`, `I248` etc. Most
1818
/// users will want [`crate::I256`].
1919
///

crates/sol-types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub use alloy_sol_macro::sol;
5353
pub mod private {
5454
pub use super::{
5555
abi::RECURSION_LIMIT,
56-
utils::{just_ok, next_multiple_of_32, words_for, words_for_len},
56+
utils::{next_multiple_of_32, words_for, words_for_len},
5757
};
5858
pub use alloc::{
5959
borrow::{Cow, ToOwned},

crates/sol-types/src/utils.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ pub(crate) fn pad_usize(value: usize) -> Word {
5151
padded
5252
}
5353

54-
/// Returns `Ok(())`. Exists for the [`define_udt!`](crate::define_udt!)'s
55-
/// typecheck.
56-
#[doc(hidden)]
57-
#[inline]
58-
pub const fn just_ok<T>(_: &T) -> crate::Result<()> {
59-
Ok(())
60-
}
61-
6254
#[inline]
6355
pub(crate) fn check_zeroes(data: &[u8]) -> bool {
6456
data.iter().all(|b| *b == 0)

typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ extend-exclude = [
1111
"**/*_test.*",
1212
"**/*_tests.*",
1313
"CHANGELOG.md",
14+
"crates/dyn-abi/src/coerce.rs", # intentional typos
1415
"crates/primitives/src/hex_literal.rs", # hex data
1516
"crates/sol-type-parser/src/ident.rs", # intentional typos
1617
"crates/sol-type-parser/src/parameter.rs", # intentional typos

0 commit comments

Comments
 (0)