Fix typos in kubectl package comments

- Fix 'Prefrences' -> 'Preferences' in kuberc.go
- Fix 'formating' -> 'formatting' in humanreadable_flags.go

Kubernetes-commit: 7b6fbc9677afc703e058f9a9079805026af76745
This commit is contained in:
Sonika Arora 2025-12-21 23:17:37 -08:00 committed by Kubernetes Publisher
parent 9c4f2708d3
commit e3aecb126e
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ func (f *HumanPrintFlags) EnsureWithNamespace() error {
return nil
}
// AllowedFormats returns more customized formating options
// AllowedFormats returns more customized formatting options
func (f *HumanPrintFlags) AllowedFormats() []string {
return []string{"wide"}
}

View file

@ -70,7 +70,7 @@ type Preferences struct {
policy clientcmdapi.PluginPolicy
}
// NewPreferences returns initialized Prefrences object.
// NewPreferences returns initialized Preferences object.
func NewPreferences() PreferencesHandler {
return &Preferences{
getPreferencesFunc: DefaultGetPreferences,