From 97d350ccb1c39cdc251c23d521bd97abf590269c Mon Sep 17 00:00:00 2001 From: "Aaron K. Clark (CryptoJones)" Date: Wed, 24 Jun 2026 18:29:02 -0500 Subject: [PATCH] docs: fix typos and grammar in doc comments Corrects small spelling and grammar mistakes in source documentation comments (no behavior change): - ServiceLogger.swift: "messsages" -> "messages" - ClientImage.swift: "we dont know" -> "we don't know" - Filesystem.swift: "a in-memory" -> "an in-memory" - ResourceLabels.swift: "a owner" -> "an owner" - Archiver.swift: "if its a regular file" -> "if it's a regular file" Co-Authored-By: Claude Opus 4.8 --- Sources/ContainerLog/ServiceLogger.swift | 2 +- Sources/ContainerResource/Common/ResourceLabels.swift | 2 +- Sources/ContainerResource/Container/Filesystem.swift | 2 +- Sources/Services/ContainerAPIService/Client/Archiver.swift | 2 +- Sources/Services/ContainerAPIService/Client/ClientImage.swift | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/ContainerLog/ServiceLogger.swift b/Sources/ContainerLog/ServiceLogger.swift index 2fd111e24..3e89d79d4 100644 --- a/Sources/ContainerLog/ServiceLogger.swift +++ b/Sources/ContainerLog/ServiceLogger.swift @@ -24,7 +24,7 @@ public struct ServiceLogger { /// - Parameters: /// - label: A unique identifier for the application. /// - category: An identifier for the application subsystem. - /// - metadata: Metadata to include for all messsages. A message + /// - metadata: Metadata to include for all messages. A message /// specific value for a duplicate key overrides these values. /// - debug: Enable debug logging. /// - logPath: If supplied, create log files under the named diff --git a/Sources/ContainerResource/Common/ResourceLabels.swift b/Sources/ContainerResource/Common/ResourceLabels.swift index b02564a04..b303fcf77 100644 --- a/Sources/ContainerResource/Common/ResourceLabels.swift +++ b/Sources/ContainerResource/Common/ResourceLabels.swift @@ -100,7 +100,7 @@ extension AppErrorCode { /// System-defined keys for resource labels. public struct ResourceLabelKeys { - /// Indicates a owner of a resource managed by a plugin. + /// Indicates an owner of a resource managed by a plugin. public static let plugin = "com.apple.container.plugin" /// Indicates a resource with a reserved or dedicated purpose. diff --git a/Sources/ContainerResource/Container/Filesystem.swift b/Sources/ContainerResource/Container/Filesystem.swift index 445a87621..6db80637c 100644 --- a/Sources/ContainerResource/Container/Filesystem.swift +++ b/Sources/ContainerResource/Container/Filesystem.swift @@ -159,7 +159,7 @@ public struct Filesystem: Sendable, Codable { } } - /// Returns true if the Filesystem is backed by a in-memory mount type. + /// Returns true if the Filesystem is backed by an in-memory mount type. public var isTmpfs: Bool { switch type { case .tmpfs: true diff --git a/Sources/Services/ContainerAPIService/Client/Archiver.swift b/Sources/Services/ContainerAPIService/Client/Archiver.swift index 10dd21521..22bbbbce2 100644 --- a/Sources/Services/ContainerAPIService/Client/Archiver.swift +++ b/Sources/Services/ContainerAPIService/Client/Archiver.swift @@ -116,7 +116,7 @@ public final class Archiver: Sendable { defer { readBuffer.deallocate() } try writer.writeHeader(entry: entry) if entry.fileType == .regular { - // We need to write the data into the archive only if its a regular file + // We need to write the data into the archive only if it's a regular file // Symlinks and directories require us to only write the archive header guard let stream = InputStream(url: item) else { throw Error.failedToCreateInputStream(item) diff --git a/Sources/Services/ContainerAPIService/Client/ClientImage.swift b/Sources/Services/ContainerAPIService/Client/ClientImage.swift index 3516d0ef9..9a5755f3b 100644 --- a/Sources/Services/ContainerAPIService/Client/ClientImage.swift +++ b/Sources/Services/ContainerAPIService/Client/ClientImage.swift @@ -362,7 +362,7 @@ extension ClientImage { do { let match = try await self.get(reference: reference, containerSystemConfig: containerSystemConfig) if let platform { - // The image exists, but we dont know if we have the right platform pulled + // The image exists, but we don't know if we have the right platform pulled // Check if we do, if not pull the requested platform _ = try await match.config(for: platform) }