From 668ca8bb7283ae2df3d7047523bf90a28d86476c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Fri, 23 Oct 2026 08:47:22 -0400 Subject: [PATCH] docs: fix 3 typos in documentation comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit registrated -> registered, build -> built, match -> matches. Comments only. Signed-off-by: Léon Avic Simmons --- Sources/Mocker/Mocker.swift | 2 +- Sources/Mocker/URLMatchType.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Mocker/Mocker.swift b/Sources/Mocker/Mocker.swift index 70a710c..63df997 100644 --- a/Sources/Mocker/Mocker.swift +++ b/Sources/Mocker/Mocker.swift @@ -57,7 +57,7 @@ public struct Mocker { /// The HTTP Version to use in the mocked response. public static var httpVersion: HTTPVersion = HTTPVersion.http1_1 - /// The registrated mocks. + /// The registered mocks. private(set) var mocks: [Mock] = [] /// URLs to ignore for mocking. diff --git a/Sources/Mocker/URLMatchType.swift b/Sources/Mocker/URLMatchType.swift index 55a4353..64d2e8c 100644 --- a/Sources/Mocker/URLMatchType.swift +++ b/Sources/Mocker/URLMatchType.swift @@ -18,7 +18,7 @@ public enum URLMatchType { } extension URL { - /// Returns the base URL string build with the scheme, host and path. "https://www.wetransfer.com/v1/test?param=test" would be "https://www.wetransfer.com/v1/test". + /// Returns the base URL string built with the scheme, host and path. "https://www.wetransfer.com/v1/test?param=test" would be "https://www.wetransfer.com/v1/test". var baseString: String? { guard let scheme = scheme, let host = host else { return nil } return scheme + "://" + host + path @@ -27,7 +27,7 @@ extension URL { /// Checks if this URL matches the passed URL using the provided match type. /// /// - Parameter url: The URL to check for a match. - /// - Parameter matchType: The approach that will be used to determine whether this URL match the provided URL. Defaults to `full`. + /// - Parameter matchType: The approach that will be used to determine whether this URL matches the provided URL. Defaults to `full`. /// - Returns: `true` if the URL matches based on the match type; `false` otherwise. func matches(_ otherURL: URL?, matchType: URLMatchType = .full) -> Bool { guard let otherURL else { return false }