chore: fix some comments (#2903)

Signed-off-by: jinjiadu <jinjiadu@aliyun.com>
This commit is contained in:
jinjiadu 2024-06-04 06:26:33 +08:00 committed by GitHub
parent 2940a3514d
commit 911ea4d678
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
}
}
// By appending resutls in the outer loop we can reduce false positives if there are multiple
// By appending results in the outer loop we can reduce false positives if there are multiple
// combinations of secrets and IDs found.
if len(apiSecretMatches) > 0 {
results = append(results, s1)

View file

@ -63,7 +63,7 @@ type Result struct {
verificationError error
}
// SetVerificationError is the only way to set a verification error. Any sensetive values should be passed-in as secrets to be redacted.
// SetVerificationError is the only way to set a verification error. Any sensitive values should be passed-in as secrets to be redacted.
func (r *Result) SetVerificationError(err error, secrets ...string) {
if err != nil {
r.verificationError = redactSecrets(err, secrets...)