From 2a14205e7eb3b131785c33a46e5034b9c794e01f Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 26 Aug 2023 18:44:02 +0000 Subject: [PATCH] wireguard: fix misspellings Signed-off-by: Alejandro Mery --- pkg/wireguard/keys.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/wireguard/keys.go b/pkg/wireguard/keys.go index f3585c3..532f64e 100644 --- a/pkg/wireguard/keys.go +++ b/pkg/wireguard/keys.go @@ -51,12 +51,12 @@ func (pub PublicKey) String() string { } } -// MarshalJSON encodes the key for JSON, omiting empty. +// MarshalJSON encodes the key for JSON, omitting empty. func (key PrivateKey) MarshalJSON() ([]byte, error) { return encodeKeyJSON(key.String()) } -// MarshalJSON encodes the key for JSON, omiting empty. +// MarshalJSON encodes the key for JSON, omitting empty. func (pub PublicKey) MarshalJSON() ([]byte, error) { return encodeKeyJSON(pub.String()) } @@ -70,12 +70,12 @@ func encodeKeyJSON(s string) ([]byte, error) { return out, nil } -// MarshalYAML encodes the key for YAML, omiting empty. +// MarshalYAML encodes the key for YAML, omitting empty. func (key PrivateKey) MarshalYAML() (any, error) { return encodeKeyYAML(key.String()) } -// MarshalYAML encodes the key for YAML, omiting empty. +// MarshalYAML encodes the key for YAML, omitting empty. func (pub PublicKey) MarshalYAML() (any, error) { return encodeKeyYAML(pub.String()) }