diff --git a/cmd/tesla-control/commands.go b/cmd/tesla-control/commands.go index bcfe0948..7123fa56 100644 --- a/cmd/tesla-control/commands.go +++ b/cmd/tesla-control/commands.go @@ -249,7 +249,7 @@ var commands = map[string]*Command{ }, }, "add-key-request": &Command{ - help: "Requset NFC-card approval for a enrolling PUBLIC_KEY with ROLE and FORM_FACTOR", + help: "Request NFC-card approval for a enrolling PUBLIC_KEY with ROLE and FORM_FACTOR", requiresAuth: false, requiresFleetAPI: false, args: []Argument{ diff --git a/internal/log/logger.go b/internal/log/logger.go index 56e7aac6..b5d7e16a 100644 --- a/internal/log/logger.go +++ b/internal/log/logger.go @@ -15,7 +15,7 @@ type Level int const ( LevelNone Level = iota // Disables logging. LevelError // Logs anamolies that are not expected to occur during normal use. - LevelWarning // Logs anamolies that are expected to occur occassionally during normal use. + LevelWarning // Logs anamolies that are expected to occur occasionally during normal use. LevelInfo // Logs major events. LevelDebug // Logs detailed IO ) diff --git a/pkg/cli/config.go b/pkg/cli/config.go index e1a14391..856677e1 100644 --- a/pkg/cli/config.go +++ b/pkg/cli/config.go @@ -320,7 +320,7 @@ func (c *Config) PrivateKey() (skey protocol.ECDHPrivateKey, err error) { // Connect to vehicle and/or account. // // If c.TokenFilename is set, the returned account will not be nil and the vehicle will use a -// connector.inet connection if a VIN was provded. If no token filename is set, c.VIN is required, +// connector.inet connection if a VIN was provided. If no token filename is set, c.VIN is required, // the account will be nil, and the vehicle will use a connector.ble connection. func (c *Config) Connect(ctx context.Context) (acct *account.Account, car *vehicle.Vehicle, err error) { if c.VIN == "" && c.KeyringTokenName == "" && c.TokenFilename == "" { diff --git a/pkg/vehicle/vcsec.go b/pkg/vehicle/vcsec.go index 99de7ac5..f07434e6 100644 --- a/pkg/vehicle/vcsec.go +++ b/pkg/vehicle/vcsec.go @@ -32,7 +32,7 @@ func unmarshalVCSECResponse(message *universal.RoutableMessage) (*vcsec.FromVCSE case nil: return &vcsec.FromVCSECMessage{}, nil default: - return nil, protocol.NewError("payload missing from vehicle respone", true, false) + return nil, protocol.NewError("payload missing from vehicle response", true, false) } encodedMessage := message.GetProtobufMessageAsBytes()