Fix typo in crypto.go (#387)

This commit is contained in:
Ikko Eltociear Ashimine 2023-09-14 22:00:44 +09:00 committed by GitHub
parent 25358ab9a4
commit a3a57375ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ var BcryptFunc = function.New(&function.Spec{
input := args[0].AsString()
out, err := bcrypt.GenerateFromPassword([]byte(input), defaultCost)
if err != nil {
return cty.UnknownVal(cty.String), fmt.Errorf("error occured generating password %s", err.Error())
return cty.UnknownVal(cty.String), fmt.Errorf("error occurred generating password %s", err.Error())
}
return cty.StringVal(string(out)), nil