Skip to content

Commit

Permalink
doc: fixes (#498)
Browse files Browse the repository at this point in the history
* doc: fixes

* fix: re-add deleted item, with cfg

* fix: correct line this time
  • Loading branch information
prestwich authored Jan 24, 2024
1 parent db72e77 commit c974656
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crates/dyn-abi/src/coerce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ impl DynSolType {
/// delimited by commas (`,`) and surrounded by brackets (`[]`)
/// - [`Tuple`](DynSolType::Tuple): the inner types delimited by commas (`,`) and surrounded by
/// parentheses (`()`)
/// - [`CustomStruct`](DynSolType::CustomStruct): the same as `Tuple`
/// -
#[cfg_attr(
feature = "eip712",
doc = "- [`CustomStruct`](DynSolType::CustomStruct): the same as `Tuple`"
)]
///
/// # Examples
///
Expand Down
2 changes: 1 addition & 1 deletion crates/sol-types/src/impl_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ where
Ok(unsafe { array_assume_init(array) })
}

/// [`slice::split_array_ref`]
/// [slice::split_array_ref](https://doc.rust-lang.org/std/primitive.slice.html#method.split_array_ref)
#[inline]
#[track_caller]
pub(crate) fn split_array_ref<T, const N: usize>(slice: &[T]) -> (&[T; N], &[T]) {
Expand Down

0 comments on commit c974656

Please sign in to comment.