Skip to content

Commit 5e2ed03

Browse files
committed
bcrypt: update InvalidCostError message to describe cost range inclusive
Signed-off-by: redwrasse <[email protected]>
1 parent b2d3a6a commit 5e2ed03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bcrypt/bcrypt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (ih InvalidHashPrefixError) Error() string {
5050
type InvalidCostError int
5151

5252
func (ic InvalidCostError) Error() string {
53-
return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range (%d,%d)", int(ic), MinCost, MaxCost)
53+
return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range [%d,%d]", int(ic), MinCost, MaxCost)
5454
}
5555

5656
const (

0 commit comments

Comments
 (0)