chore: fix some comments (#313)

Signed-off-by: dashangcun <907225865@qq.com>
This commit is contained in:
dashangcun 2025-02-11 09:40:55 +01:00 committed by GitHub
parent 8014f51b6d
commit 656a092cf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -736,7 +736,7 @@ enum ClosestBucketsIterState {
/// The starting state of the iterator yields the first bucket index and /// The starting state of the iterator yields the first bucket index and
/// then transitions to `ZoomIn`. /// then transitions to `ZoomIn`.
Start(BucketIndex), Start(BucketIndex),
/// The iterator "zooms in" to to yield the next bucket containing nodes that /// The iterator "zooms in" to yield the next bucket containing nodes that
/// are incrementally closer to the local node but further from the `target`. /// are incrementally closer to the local node but further from the `target`.
/// These buckets are identified by a `1` in the corresponding bit position /// These buckets are identified by a `1` in the corresponding bit position
/// of the distance bit string. When bucket `0` is reached, the iterator /// of the distance bit string. When bucket `0` is reached, the iterator

View File

@ -406,7 +406,7 @@ impl_for_vec!(SmallVec<[T; 8]>, Some(8));
/// Decodes `bytes` as if it were a list of variable-length items. /// Decodes `bytes` as if it were a list of variable-length items.
/// ///
/// The `ssz::SszDecoder` can also perform this functionality, however it it significantly faster /// The `ssz::SszDecoder` can also perform this functionality, however it is significantly faster
/// as it is optimized to read same-typed items whilst `ssz::SszDecoder` supports reading items of /// as it is optimized to read same-typed items whilst `ssz::SszDecoder` supports reading items of
/// differing types. /// differing types.
pub fn decode_list_of_variable_length_items<T: Decode>( pub fn decode_list_of_variable_length_items<T: Decode>(