Skip to content

Commit 871f4e2

Browse files
committed
chore: Typos
1 parent ae67cb2 commit 871f4e2

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy