1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
Description: Fix typos in documentation
A number of typos were identified and fixed during initial code review.
Author: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Origin: vendor
Last-Update: 2025-08-27
Forwarded: https://github.com/canonical/go-efilib/pull/17
--- golang-github-canonical-go-efilib-1.6.0.orig/boot.go
+++ golang-github-canonical-go-efilib-1.6.0/boot.go
@@ -30,7 +30,7 @@ const (
// ready to boot signal.
LoadOptionClassSysPrep LoadOptionClass = "SysPrep"
- // LoadOptionClassBoot corresponds to normal boot applicationds.
+ // LoadOptionClassBoot corresponds to normal boot applications.
LoadOptionClassBoot LoadOptionClass = "Boot"
// LoadOptionClassPlatformRecovery corresponds to platform supplied recovery
@@ -219,7 +219,7 @@ func WriteLoadOptionVariable(ctx context
// DeleteLoadOptionVariable deletes the load option variable for the specified
// class and option number. The variable is written to the global namespace. This will
-// succeed even if the variable doesn't alreeady exist. The class must be one of
+// succeed even if the variable doesn't already exist. The class must be one of
// LoadOptionClassDriver, LoadOptionClassSysprep, or LoadOptionClassBoot. In general
// [DefaultVarContext] should be supplied to this.
func DeleteLoadOptionVariable(ctx context.Context, class LoadOptionClass, n uint16) error {
--- golang-github-canonical-go-efilib-1.6.0.orig/gpt.go
+++ golang-github-canonical-go-efilib-1.6.0/gpt.go
@@ -39,7 +39,7 @@ func (e InvalidGPTHeaderError) Error() s
return "invalid GPT header: " + string(e)
}
-// PartitionTableHeader correponds to the EFI_PARTITION_TABLE_HEADER type.
+// PartitionTableHeader corresponds to the EFI_PARTITION_TABLE_HEADER type.
type PartitionTableHeader struct {
HeaderSize uint32
MyLBA LBA
--- golang-github-canonical-go-efilib-1.6.0.orig/loadoption.go
+++ golang-github-canonical-go-efilib-1.6.0/loadoption.go
@@ -87,7 +87,7 @@ func (o *LoadOption) Write(w io.Writer)
}
// IsActive indicates whether the attributes has the LOAD_OPTION_ACTIVE flag set.
-// These will be tried automaitcally if they are in BootOrder.
+// These will be tried automatically if they are in BootOrder.
func (o *LoadOption) IsActive() bool {
return o.Attributes&LoadOptionActive > 0
}
--- golang-github-canonical-go-efilib-1.6.0.orig/net.go
+++ golang-github-canonical-go-efilib-1.6.0/net.go
@@ -53,7 +53,7 @@ func (a IPv4Address) AsNetIPAddr() netip
return netip.AddrFrom4([4]uint8(a))
}
-// IPv4AddressOrigin descibes how an IP v4 address was assigned.
+// IPv4AddressOrigin describes how an IP v4 address was assigned.
type IPv4AddressOrigin bool
const (
@@ -87,7 +87,7 @@ func (a IPv6Address) AsNetIPAddr() netip
return netip.AddrFrom16([16]uint8(a))
}
-// IPv6AddressOrigin descibes how an IP v6 address was assigned.
+// IPv6AddressOrigin describes how an IP v6 address was assigned.
type IPv6AddressOrigin uint8
const (
--- golang-github-canonical-go-efilib-1.6.0.orig/vars.go
+++ golang-github-canonical-go-efilib-1.6.0/vars.go
@@ -59,7 +59,7 @@ type VarsBackend interface {
}
// VarsBackend2 is like [VarsBackend] only it takes a context that the backend can use
-// for deadlines or cancellation - this is paricularly applicable on systems where there
+// for deadlines or cancellation - this is particularly applicable on systems where there
// may be multiple writers and writes have to be serialized by the operating system to
// some degree.
type VarsBackend2 interface {
@@ -225,7 +225,7 @@ func newDefaultVarContext() context.Cont
// before performing it.
var DefaultVarContext = newDefaultVarContext()
-// WithDefaultVarsBackend adds the default system backend for accesssing EFI
+// WithDefaultVarsBackend adds the default system backend for accessing EFI
// variables to an existing context. It allows for usage of any context other
// than the internally created background one.
//
--- golang-github-canonical-go-efilib-1.6.0.orig/vars_linux.go
+++ golang-github-canonical-go-efilib-1.6.0/vars_linux.go
@@ -204,7 +204,7 @@ func writeEfivarfsFile(path string, attr
// If the supplied attributes are incompatible with the variable,
// the variable service will return EFI_INVALID_PARAMETER and
// we'll get EINVAL back. If the supplied attributes are correct
- // but we perform a zero-byte write to an authenticated vaiable,
+ // but we perform a zero-byte write to an authenticated variable,
// the variable service will return EFI_SECURITY_VIOLATION, but
// the kernel also turns this into EINVAL. Instead, we generate
// an appropriate error if the supplied attributes indicate that
|