Skip to content

Commit

Permalink
Ambigous typo fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Yaroslav Halchenko <[email protected]>
  • Loading branch information
yarikoptic committed May 8, 2023
1 parent 920aa27 commit 4f6107e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/cdi/cmd/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func resolveDevices(ociSpecFiles ...string) error {
resolved, err := cdi.ResolveDevices(ociSpec)
if err != nil {
return errors.Wrapf(err, "CDI device resolution faile in %q",
return errors.Wrapf(err, "CDI device resolution failed in %q",
ociSpecFile)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cdi/container-edits.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (d *DeviceNode) Validate() error {
}
for _, bit := range d.Permissions {
if bit != 'r' && bit != 'w' && bit != 'm' {
return fmt.Errorf("device %q: invalid persmissions %q",
return fmt.Errorf("device %q: invalid permissions %q",
d.Path, d.Permissions)
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cdi/qualified-device.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
//
// 'A'-'Z', 'a'-'z', '0'-'9', '.', '-', '_'.
//
// A valid device name may containe the following runes:
// A valid device name may contain the following runes:
//
// 'A'-'Z', 'a'-'z', '0'-'9', '-', '_', '.', ':'
//
Expand Down
2 changes: 1 addition & 1 deletion pkg/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
//
// 'A'-'Z', 'a'-'z', '0'-'9', '.', '-', '_'.
//
// A valid device name may containe the following runes:
// A valid device name may contain the following runes:
//
// 'A'-'Z', 'a'-'z', '0'-'9', '-', '_', '.', ':'
func QualifiedName(vendor, class, name string) string {
Expand Down

0 comments on commit 4f6107e

Please sign in to comment.