From e9312a35a3df8dea0085aef785dd2d1d054508a3 Mon Sep 17 00:00:00 2001 From: "LamTrinh.Dev" Date: Sat, 18 Apr 2026 02:59:50 +0700 Subject: [PATCH] Fix typo in SignatureAlgorithm error message. (#295) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Fixed typo in `SignatureAlgorithm.swift:180`: "unsupprted" → "unsupported" ## Details The error message thrown when an unsupported signature algorithm value is encountered contained a spelling error. This has been corrected. ## Test plan - Existing tests continue to pass - The error message is only shown when an invalid algorithm is used, so no new tests are needed --- Sources/X509/SignatureAlgorithm.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/X509/SignatureAlgorithm.swift b/Sources/X509/SignatureAlgorithm.swift index 02833bf..603b82f 100644 --- a/Sources/X509/SignatureAlgorithm.swift +++ b/Sources/X509/SignatureAlgorithm.swift @@ -177,7 +177,7 @@ extension Certificate.SignatureAlgorithm { return 0x0807 default: throw CertificateError.unsupportedSignatureAlgorithm( - reason: "SignatureAlgorithm(\(self)) has an unsupprted value" + reason: "SignatureAlgorithm(\(self)) has an unsupported value" ) } }