mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-02-23 12:15:18 +00:00
chore: fix some comments (#313)
Signed-off-by: dashangcun <907225865@qq.com>
This commit is contained in:
parent
8014f51b6d
commit
656a092cf8
@ -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
|
||||||
|
@ -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>(
|
||||||
|
Loading…
Reference in New Issue
Block a user