Skip to content

Commit 601437e

Browse files
authored
Merge pull request #121 from ryancurrah/spelling-and-error-string
chore: fix spelling and error strings should not be capitalized
2 parents 957dfd2 + 79ebf1f commit 601437e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bootloader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func WithCreatingEFIVariableStore() NewEFIVariableStoreOption {
192192
}
193193

194194
// NewEFIVariableStore Initialize the variable store. If no options are specified,
195-
// it initialises from the paths that exist.
195+
// it initializes from the paths that exist.
196196
//
197197
// This is only supported on macOS 13 and newer, error will
198198
// be returned on older versions.

network.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func validateDatagramSocket(fd int) error {
166166
if sotype == syscall.SOCK_DGRAM && isAvailableDatagram(fd) {
167167
return nil
168168
}
169-
return fmt.Errorf("The fileHandle must be a datagram socket")
169+
return fmt.Errorf("the fileHandle must be a datagram socket")
170170
}
171171

172172
func isAvailableDatagram(fd int) bool {

serial_console.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type FileHandleSerialPortAttachment struct {
3737
*baseSerialPortAttachment
3838
}
3939

40-
// NewFileHandleSerialPortAttachment intialize the FileHandleSerialPortAttachment from file handles.
40+
// NewFileHandleSerialPortAttachment initialize the FileHandleSerialPortAttachment from file handles.
4141
//
4242
// read parameter is an *os.File for reading from the file.
4343
// write parameter is an *os.File for writing to the file.

socket.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func connectionHandler(connPtr, errPtr, cgoHandlerPtr unsafe.Pointer) {
138138
// Connect Initiates a connection to the specified port of the guest operating system.
139139
//
140140
// This method initiates the connection asynchronously, and executes the completion handler when the results are available.
141-
// If the guest operating system doesn’t listen for connections to the specifed port, this method does nothing.
141+
// If the guest operating system doesn’t listen for connections to the specified port, this method does nothing.
142142
//
143143
// For a successful connection, this method sets the sourcePort property of the resulting VZVirtioSocketConnection object to a random port number.
144144
// see: https://developer.apple.com/documentation/virtualization/vzvirtiosocketdevice/3656677-connecttoport?language=objc

0 commit comments

Comments
 (0)