From 8a2a304246fb0850326d43c077a010740ecbc41a Mon Sep 17 00:00:00 2001 From: maruiyan Date: Wed, 28 Apr 2021 17:00:01 +0800 Subject: [PATCH] change marsheller to marchaler --- cmd/kubeadm/app/apis/kubeadm/v1beta2/bootstraptokenstring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/apis/kubeadm/v1beta2/bootstraptokenstring.go b/cmd/kubeadm/app/apis/kubeadm/v1beta2/bootstraptokenstring.go index 2408f5e33b8..f6f42e9342e 100644 --- a/cmd/kubeadm/app/apis/kubeadm/v1beta2/bootstraptokenstring.go +++ b/cmd/kubeadm/app/apis/kubeadm/v1beta2/bootstraptokenstring.go @@ -40,7 +40,7 @@ func (bts BootstrapTokenString) MarshalJSON() ([]byte, error) { return []byte(fmt.Sprintf(`"%s"`, bts.String())), nil } -// UnmarshalJSON implements the json.Unmarshaller interface. +// UnmarshalJSON implements the json.Unmarshaler interface. func (bts *BootstrapTokenString) UnmarshalJSON(b []byte) error { // If the token is represented as "", just return quickly without an error if len(b) == 0 {