Skip to content

Commit 4181e50

Browse files
authored
refactor: fix typos (#64)
fix typos
1 parent 8a92500 commit 4181e50

13 files changed

Lines changed: 24 additions & 24 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To file a bug or feature request, use [GitHub issues](https://github.com/apple/c
2424

2525
### Pull Requests
2626

27-
To make a pull request, use [GitHub](https://github.com/apple/containerization/compare). Please give the team a few days to review but it's ok to check in on occassion. We appreciate your contribution!
27+
To make a pull request, use [GitHub](https://github.com/apple/containerization/compare). Please give the team a few days to review but it's ok to check in on occasion. We appreciate your contribution!
2828

2929
> [!IMPORTANT]
3030
> If you plan to make substantial changes or add new features, we encourage you to first discuss them with the wider containerization developer community.
@@ -45,7 +45,7 @@ Before merging, we'll review the pull request title and body to ensure it:
4545

4646
The pull request description should be concise and accurately describe the *what* and *why* of your changes.
4747

48-
#### Fomatting Contributions
48+
#### Formatting Contributions
4949

5050
Make sure your contributions are consistent with the rest of the project's formatting. You can do this using our Makefile:
5151

Sources/Containerization/Kernel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public struct Kernel: Sendable, Codable {
4040

4141
/// Additional kernel arguments.
4242
public var kernelArgs: [String]
43-
/// Additional arguments passsed to the Initial Process / Agent.
43+
/// Additional arguments passed to the Initial Process / Agent.
4444
public var initArgs: [String]
4545

4646
/// Initializes the kernel commandline using the mix of kernel arguments

Sources/Containerization/LinuxContainer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public final class LinuxContainer: Container, Sendable {
8282
case stopping(StoppingState)
8383
/// The container has ran and fully stopped.
8484
case stopped
85-
/// An error occured during the lifetime of this class.
85+
/// An error occurred during the lifetime of this class.
8686
case errored(Swift.Error)
8787

8888
struct CreatingState: Sendable {}

Sources/ContainerizationArchive/ArchiveWriter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public final class ArchiveWriter {
3737
try setOptions(configuration.options)
3838
}
3939

40-
/// Initialize a new `ArchiveWriter` with the given configuration and specifed delegate.
40+
/// Initialize a new `ArchiveWriter` with the given configuration and specified delegate.
4141
private convenience init(configuration: ArchiveWriterConfiguration, delegate: FileArchiveWriterDelegate) throws {
4242
try self.init(configuration: configuration)
4343
self.delegate = delegate

Sources/ContainerizationArchive/Reader.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public final class ArchiveReader {
2626
let fileHandle: FileHandle?
2727

2828
/// Initializes an `ArchiveReader` to read from a specified file URL with an explicit `Format` and `Filter`.
29-
/// Note: This method must be used when it is known that the archive at the specified URL follows the specifed
29+
/// Note: This method must be used when it is known that the archive at the specified URL follows the specified
3030
/// `Format` and `Filter`.
3131
public convenience init(format: Format, filter: Filter, file: URL) throws {
3232
let fileHandle = try FileHandle(forReadingFrom: file)
3333
try self.init(format: format, filter: filter, fileHandle: fileHandle)
3434
}
3535

3636
/// Initializes an `ArchiveReader` to read from the provided file descriptor with an explicit `Format` and `Filter`.
37-
/// Note: This method must be used when it is known that the archive pointed to by the file descriptor follows the specifed
37+
/// Note: This method must be used when it is known that the archive pointed to by the file descriptor follows the specified
3838
/// `Format` and `Filter`.
3939
public init(format: Format, filter: Filter, fileHandle: FileHandle) throws {
4040
self.underlying = archive_read_new()

Sources/ContainerizationEXT4/EXT4+Format.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,15 @@ extension EXT4 {
262262
//
263263
// - Parameters:
264264
// - path: The FilePath representing the path where the file, directory, or symlink should be created.
265-
// - link: An optional FilePath representing the target path for a symlink. If `nil`, a regular file or directory will be created. Preceeding '/' should be ommitted
265+
// - link: An optional FilePath representing the target path for a symlink. If `nil`, a regular file or directory will be created. Preceding '/' should be omitted
266266
// - mode: The permissions to set for the created file, directory, or symlink.
267267
// - buf: An `InputStream` object providing the contents for the created file. Ignored when creating directories or symlinks.
268268
//
269269
// - Note:
270270
// - This function recursively creates parent directories if they don't already exist. The `uid` and `gid` of the created parent directories are set to the values of their parent's `uid` and `gid`.
271-
// - It is expected that the user sets the permissions explicity later
271+
// - It is expected that the user sets the permissions explicitly later
272272
// - This function only supports creating files, directories, and symlinks. Attempting to create other types of file system objects will result in an error.
273-
// - In case of symlinks, the preceeding '/' should be omitted
273+
// - In case of symlinks, the preceding '/' should be omitted
274274
//
275275
// - Example usage:
276276
// ```swift

Sources/ContainerizationEXT4/EXT4+Xattrs.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ extension EXT4 {
186186
try Self.write(buffer: &buffer, attrs: attributes, start: UInt16(idx), delta: UInt16(idx), inline: false)
187187
}
188188

189-
/// Writes the specified list of extended atrribute entries and their values to the provided
190-
/// This method does not fill in any headers (Inode inline / block level) that may be requried to parse these attributes
189+
/// Writes the specified list of extended attribute entries and their values to the provided
190+
/// This method does not fill in any headers (Inode inline / block level) that may be required to parse these attributes
191191
///
192192
/// - Parameters:
193193
/// - buffer: An array of [UInt8] where the data will be written into

Sources/ContainerizationOCI/AnnotationKeys.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// limitations under the License.
1616
//===----------------------------------------------------------------------===//
1717

18-
/// AnnotationKeys contains a subset of "dictionary keys" for commonly used annotaions in an OCI Image Descriptor
18+
/// AnnotationKeys contains a subset of "dictionary keys" for commonly used annotations in an OCI Image Descriptor
1919
/// https://github.com/opencontainers/image-spec/blob/main/annotations.md
2020
public struct AnnotationKeys: Codable, Sendable {
2121
public static let containerizationImageName = "com.apple.containerization.image.name"

Sources/ContainerizationOCI/Content/Content.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public protocol Content: Sendable {
3131
/// Size of content
3232
func size() throws -> UInt64
3333

34-
/// Data represenatation of entire content
34+
/// Data representation of entire content
3535
func data() throws -> Data
3636

3737
/// Data representation partial content

Sources/ContainerizationOS/AsyncSignalHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public final class AsyncSignalHandler: Sendable {
5858
}
5959

6060
// We keep a reference to the continuation object that is created for
61-
// our AsyncStream and tell our singal handler to yield a value to it
62-
// returing a value to the consumer
61+
// our AsyncStream and tell our signal handler to yield a value to it
62+
// returning a value to the consumer
6363
private func handler(_ sig: Int32) {
6464
self.state.withLock {
6565
for cont in $0.conts {

0 commit comments

Comments
 (0)