Skip to content

Commit

Permalink
Correct panic message that is an error now
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu authored Dec 8, 2023
1 parent 7243fb4 commit ed93719
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/subspace-farmer-components/src/sector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,7 @@ impl SectorContentsMap {
/// corresponds to the record to which chunk belongs and `encoded_chunk_used` indicates whether
/// it was encoded.
///
/// ## Panics
/// Panics if `s_bucket` is outside of [`Record::NUM_S_BUCKETS`] range.
/// Returns error if `s_bucket` is outside of [`Record::NUM_S_BUCKETS`] range.
pub fn iter_s_bucket_records(
&self,
s_bucket: SBucket,
Expand Down

0 comments on commit ed93719

Please sign in to comment.