docs: Fix comments (#195)

master
Klaus Post 2022-07-27 05:18:58 -07:00 committed by GitHub
parent 77188e96d2
commit 9c824807d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ func (r *reedSolomonFF16) reconstruct(shards [][]byte, recoverAll bool) error {
}
}
if numberPresent == r.Shards || !recoverAll && dataPresent == r.DataShards {
// Cool. All of the shards data data. We don't
// Cool. All of the shards have data. We don't
// need to do anything.
return nil
}

View File

@ -1096,7 +1096,7 @@ func (r *reedSolomon) reconstruct(shards [][]byte, dataOnly bool, required []boo
}
if numberPresent == r.Shards || dataOnly && dataPresent == r.DataShards ||
required != nil && missingRequired == 0 {
// Cool. All of the shards data data. We don't
// Cool. All of the shards have data. We don't
// need to do anything.
return nil
}