Skip to content

Commit f605115

Browse files
committed
pkg: fix typos in error messages and comments
Signed-off-by: Oleksandr Redko <[email protected]>
1 parent 30c1a57 commit f605115

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/00-modprobe.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ for f in \
1313
overlay; do
1414
echo "Loading kernel module \"$f\""
1515
if ! modprobe "$f"; then
16-
echo >&2 "Faild to load \"$f\" (negligible if it is built-in the kernel)"
16+
echo >&2 "Failed to load \"$f\" (negligible if it is built-in the kernel)"
1717
fi
1818
done

pkg/downloader/downloader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func WithCacheDir(cacheDir string) Opt {
7575
}
7676
}
7777

78-
// WithDecription adds a user description of the download.
78+
// WithDescription adds a user description of the download.
7979
func WithDescription(description string) Opt {
8080
return func(o *options) error {
8181
o.description = description

pkg/qemu/entitlementutil/entitlementutil.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func isColimaWrapper__useThisFunctionOnlyForPrintingHints__(qExe string) bool {
7676

7777
// AskToSignIfNotSignedProperly asks to sign the QEMU binary with the "com.apple.security.hypervisor" entitlement.
7878
//
79-
// On Homebrew, QEMU binaries are usually already signed, but Homebrew's signing infrastructure is broken for Intel as of Augest 2023.
79+
// On Homebrew, QEMU binaries are usually already signed, but Homebrew's signing infrastructure is broken for Intel as of August 2023.
8080
// https://github.com/lima-vm/lima/issues/1742
8181
func AskToSignIfNotSignedProperly(qExe string) {
8282
if isSignedErr := IsSigned(qExe); isSignedErr != nil {

pkg/store/instance_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func GetWslStatus(instName string) (string, error) {
9292
}
9393

9494
var instState string
95-
// wsl --list --verbose may have differernt headers depending on localization, just split by line
95+
// wsl --list --verbose may have different headers depending on localization, just split by line
9696
for _, rows := range strings.Split(strings.ReplaceAll(string(out), "\r\n", "\n"), "\n") {
9797
cols := regexp.MustCompile(`\s+`).Split(strings.TrimSpace(rows), -1)
9898
nameIdx := 0

pkg/vz/vz_driver_darwin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func (l *LimaVzDriver) RunGUI() error {
178178
if l.CanRunGUI() {
179179
return l.machine.StartGraphicApplication(1920, 1200)
180180
}
181-
return fmt.Errorf("RunGUI is not support for the given driver '%s' and diplay '%s'", "vz", *l.Yaml.Video.Display)
181+
return fmt.Errorf("RunGUI is not supported for the given driver '%s' and display '%s'", "vz", *l.Yaml.Video.Display)
182182
}
183183

184184
func (l *LimaVzDriver) Stop(_ context.Context) error {

pkg/wsl2/wsl_driver_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (l *LimaWslDriver) CanRunGUI() bool {
149149
}
150150

151151
func (l *LimaWslDriver) RunGUI() error {
152-
return fmt.Errorf("RunGUI is not support for the given driver '%s' and diplay '%s'", "wsl", *l.Yaml.Video.Display)
152+
return fmt.Errorf("RunGUI is not supported for the given driver '%s' and display '%s'", "wsl", *l.Yaml.Video.Display)
153153
}
154154

155155
func (l *LimaWslDriver) Stop(ctx context.Context) error {

0 commit comments

Comments
 (0)