From d6f256c29ed9e11a0adb89ed2509cb4927ffb673 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Fri, 8 Nov 2024 22:30:46 +0100 Subject: [PATCH] Fix typo in error message in normalizeString function Corrected the spelling of "failed" in the error handling branch of the normalizeString function within smtp/auth_scram.go. This change addresses a minor typographical error to ensure the error message is clear and accurate. --- smtp/auth_scram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtp/auth_scram.go b/smtp/auth_scram.go index a21aef5..e27831b 100644 --- a/smtp/auth_scram.go +++ b/smtp/auth_scram.go @@ -308,7 +308,7 @@ func (a *scramAuth) normalizeUsername() (string, error) { func (a *scramAuth) normalizeString(s string) (string, error) { s, err := precis.OpaqueString.String(s) if err != nil { - return "", fmt.Errorf("failled to normalize string: %w", err) + return "", fmt.Errorf("failed to normalize string: %w", err) } if s == "" { return "", errors.New("normalized string is empty")