Skip to content

Commit

Permalink
misc: fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubuxu committed Jun 5, 2023
1 parent 2315ed4 commit 7c63083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datasegment/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ func (sd SegmentDesc) Validate() error {
return validationError("computed checksum does not match embedded checksum")
}
if sd.Offset%128 != 0 {
return validationError("offset is not aligned in unpadded data")
return validationError("offset is not aligned in padded data")
}
if sd.Size%128 != 0 {
return validationError("size is not aligned in unpadded data")
return validationError("size is not aligned in padded data")
}
return nil
}
Expand Down

0 comments on commit 7c63083

Please sign in to comment.