Skip to content

Commit 721eb87

Browse files
committed
chore: Typos
1 parent 055d05a commit 721eb87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coderd/database/errors.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const (
1616
)
1717

1818
// IsUniqueViolation checks if the error is due to a unique violation.
19-
// If specific cunique constraints are given as arguments, the error
20-
// must be caused by one of them. If no constraints are given, this
21-
// function returns true on any unique violation.
19+
// If one or more specific unique constraints are given as arguments,
20+
// the error must be caused by one of them. If no constraints are given,
21+
// this function returns true for any unique violation.
2222
func IsUniqueViolation(err error, uniqueConstraints ...UniqueConstraint) bool {
2323
var pqErr *pq.Error
2424
if errors.As(err, &pqErr) {

0 commit comments

Comments
 (0)