Skip to content

Commit 47916aa

Browse files
authored
Merge pull request #2754 from alexandear/correct-typos
Correct typos in comments
2 parents 5c1975c + fe4ab4d commit 47916aa

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ ENVS__output/bin/limactl$(exe) = CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) CC=
225225

226226
_output/bin/limactl$(exe): $(LIMACTL_DEPS) $$(call force_build,$$@)
227227
# If the previous cross-compilation was for GOOS=windows, limactl.exe might still be present.
228-
ifneq ($(GOOS),windows) #
228+
ifneq ($(GOOS),windows) #
229229
@rm -rf _output/bin/limactl.exe
230230
else
231231
@rm -rf _output/bin/limactl
@@ -254,7 +254,7 @@ MKDIR_TARGETS += _output/bin
254254
# _output/share/lima/lima-guestagent
255255
LINUX_GUESTAGENT_PATH_COMMON = _output/share/lima/lima-guestagent.Linux-
256256

257-
# How to add architecure specific guestagent:
257+
# How to add architecture specific guestagent:
258258
# 1. Add the architecture to GUESTAGENT_ARCHS
259259
# 2. Add ENVS_$(LINUX_GUESTAGENT_PATH_COMMON)<arch> to set GOOS, GOARCH, and other necessary environment variables
260260
GUESTAGENT_ARCHS = aarch64 armv7l riscv64 x86_64
@@ -395,8 +395,8 @@ native_compiling = $(if $(cross_compiling),,true)
395395
################################################################################
396396
# _output/share/man/man1
397397
.PHONY: manpages
398-
# Set limactl.1 as explicit dependency.
399-
# It's uncertain how many manpages will be generated by `make`,
398+
# Set limactl.1 as explicit dependency.
399+
# It's uncertain how many manpages will be generated by `make`,
400400
# because `limactl` generates them without corresponding source code for the manpages.
401401
manpages: _output/share/man/man1/limactl.1
402402
_output/share/man/man1/limactl.1: _output/bin/limactl$(exe)
@@ -410,7 +410,7 @@ endif
410410
################################################################################
411411
.PHONY: docsy
412412
# Set limactl.md as explicit dependency.
413-
# It's uncertain how many docsy pages will be generated by `make`,
413+
# It's uncertain how many docsy pages will be generated by `make`,
414414
# because `limactl` generates them without corresponding source code for the docsy pages.
415415
docsy: website/_output/docsy/limactl.md
416416
website/_output/docsy/limactl.md: _output/bin/limactl$(exe)
@@ -488,7 +488,7 @@ generate:
488488
# returns the capitalized string of $(1).
489489
capitalize = $(shell echo "$(1)"|awk '{print toupper(substr($$0,1,1)) tolower(substr($$0,2))}')
490490

491-
# returns the architecture name converted from GOARCH to GNU coreutils uname -m.
491+
# returns the architecture name converted from GOARCH to GNU coreutils uname -m.
492492
to_uname_m = $(foreach arch,$(1),$(shell echo $(arch) | sed 's/amd64/x86_64/' | sed 's/arm64/aarch64/'))
493493

494494
ARTIFACT_FILE_EXTENSIONS := .tar.gz

pkg/downloader/downloader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ func downloadHTTP(ctx context.Context, localPath, lastModified, contentType, url
690690

691691
var tempfileCount atomic.Uint64
692692

693-
// To allow parallel download we use a per-process unique suffix for tempoary
693+
// To allow parallel download we use a per-process unique suffix for temporary
694694
// files. Renaming the temporary file to the final file is safe without
695695
// synchronization on posix.
696696
// To make it easy to test we also include a counter ensuring that each

pkg/downloader/downloader_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type downloadResult struct {
2828
}
2929

3030
// We expect only few parallel downloads. Testing with larger number to find
31-
// races quicker. 20 parallel downloads take about 120 milliseocnds on M1 Pro.
31+
// races quicker. 20 parallel downloads take about 120 milliseconds on M1 Pro.
3232
const parallelDownloads = 20
3333

3434
// When downloading in parallel usually all downloads completed with

pkg/instance/start.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ func ShowMessage(inst *store.Instance) error {
379379
scanner := bufio.NewScanner(&b)
380380
logrus.Infof("Message from the instance %q:", inst.Name)
381381
for scanner.Scan() {
382-
// Avoid prepending logrus "INFO" header, for ease of copypasting
382+
// Avoid prepending logrus "INFO" header, for ease of copy pasting
383383
fmt.Println(scanner.Text())
384384
}
385385
return scanner.Err()

pkg/nativeimgutil/nativeimgutil.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func ConvertToRaw(source, dest string, size *int64, allowSourceWithBackingFile b
6868
defer destTmpF.Close()
6969

7070
// Truncating before copy eliminates the seeks during copy and provide a
71-
// hint to the file system that may minimize allocations and fragmanation
71+
// hint to the file system that may minimize allocations and fragmentation
7272
// of the file.
7373
if err := MakeSparse(destTmpF, srcImg.Size()); err != nil {
7474
return err

pkg/usrlocalsharelima/usrlocalsharelima.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func Dir() (string, error) {
5252
// TODO: support custom path
5353
}
5454
if debugutil.Debug {
55-
// candidate 2: lauched by `~/go/bin/dlv dap`
55+
// candidate 2: launched by `~/go/bin/dlv dap`
5656
// - self: ${workspaceFolder}/cmd/limactl/__debug_bin_XXXXXX
5757
// - agent: ${workspaceFolder}/_output/share/lima/lima-guestagent.Linux-x86_64
5858
// - dir: ${workspaceFolder}/_output/share/lima

pkg/vz/network_darwin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type qemuPacketConn struct {
8888
}
8989

9090
// Read reads a QEMU packet and returns the contained raw packet. Returns (len,
91-
// nil) if a packet was read, and (0, err) on error. Errors means the prorocol
91+
// nil) if a packet was read, and (0, err) on error. Errors means the protocol
9292
// is broken and the socket must be closed.
9393
func (c *qemuPacketConn) Read(b []byte) (n int, err error) {
9494
var size uint32

pkg/vz/network_darwin_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func TestDialQemu(t *testing.T) {
101101
}
102102
}
103103
}
104-
t.Logf("Recived and verified %d data packets", packetsCount)
104+
t.Logf("Received and verified %d data packets", packetsCount)
105105

106106
for i := 0; i < 2; i++ {
107107
err := <-errc

pkg/windows/registry_windows.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const (
1717
wslDistroInfoPrefix = `SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss`
1818
)
1919

20-
// AddVSockRegistryKey makes a vsock server running on the host acceessible in guests.
20+
// AddVSockRegistryKey makes a vsock server running on the host accessible in guests.
2121
func AddVSockRegistryKey(port int) error {
2222
rootKey, err := getGuestCommunicationServicesKey(true)
2323
if err != nil {
@@ -74,7 +74,7 @@ func RemoveVSockRegistryKey(port int) error {
7474
return nil
7575
}
7676

77-
// IsVSockPortFree determines if a VSock port has been registiered already.
77+
// IsVSockPortFree determines if a VSock port has been registered already.
7878
func IsVSockPortFree(port int) (bool, error) {
7979
rootKey, err := getGuestCommunicationServicesKey(false)
8080
if err != nil {

0 commit comments

Comments
 (0)