Skip to content

Commit 4f6107e

Browse files
committed
Ambigous typo fixes
Signed-off-by: Yaroslav Halchenko <[email protected]>
1 parent 920aa27 commit 4f6107e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cmd/cdi/cmd/resolve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func resolveDevices(ociSpecFiles ...string) error {
5757
5858
resolved, err := cdi.ResolveDevices(ociSpec)
5959
if err != nil {
60-
return errors.Wrapf(err, "CDI device resolution faile in %q",
60+
return errors.Wrapf(err, "CDI device resolution failed in %q",
6161
ociSpecFile)
6262
}
6363

pkg/cdi/container-edits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func (d *DeviceNode) Validate() error {
238238
}
239239
for _, bit := range d.Permissions {
240240
if bit != 'r' && bit != 'w' && bit != 'm' {
241-
return fmt.Errorf("device %q: invalid persmissions %q",
241+
return fmt.Errorf("device %q: invalid permissions %q",
242242
d.Path, d.Permissions)
243243
}
244244
}

pkg/cdi/qualified-device.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
//
3030
// 'A'-'Z', 'a'-'z', '0'-'9', '.', '-', '_'.
3131
//
32-
// A valid device name may containe the following runes:
32+
// A valid device name may contain the following runes:
3333
//
3434
// 'A'-'Z', 'a'-'z', '0'-'9', '-', '_', '.', ':'
3535
//

pkg/parser/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
//
3131
// 'A'-'Z', 'a'-'z', '0'-'9', '.', '-', '_'.
3232
//
33-
// A valid device name may containe the following runes:
33+
// A valid device name may contain the following runes:
3434
//
3535
// 'A'-'Z', 'a'-'z', '0'-'9', '-', '_', '.', ':'
3636
func QualifiedName(vendor, class, name string) string {

0 commit comments

Comments
 (0)