From ec70babc9164d8f7d96cb956ea3080327f2e9e64 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 10 Jun 2021 13:55:56 +0200 Subject: [PATCH] Fix typo --- pkg/icingadb/objectpacker/objectpacker.go | 2 +- pkg/types/binary.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/icingadb/objectpacker/objectpacker.go b/pkg/icingadb/objectpacker/objectpacker.go index 2a3ac36a..eb29ec1b 100644 --- a/pkg/icingadb/objectpacker/objectpacker.go +++ b/pkg/icingadb/objectpacker/objectpacker.go @@ -47,7 +47,7 @@ func PackAny(in interface{}, out io.Writer) error { var tByte = reflect.TypeOf(byte(0)) var tBytes = reflect.TypeOf([]uint8(nil)) -// packValue does the actual job of packAny and just exists for recursion w/o unneccessary reflect.ValueOf calls. +// packValue does the actual job of packAny and just exists for recursion w/o unnecessary reflect.ValueOf calls. func packValue(in reflect.Value, out io.Writer) error { switch kind := in.Kind(); kind { case reflect.Invalid: // nil diff --git a/pkg/types/binary.go b/pkg/types/binary.go index 61b4bd09..00a5417f 100644 --- a/pkg/types/binary.go +++ b/pkg/types/binary.go @@ -41,7 +41,7 @@ func (binary Binary) String() string { // MarshalText implements a custom marhsal function to encode // the Binary as hex. MarshalText implements the -// enconding.TextMarshaler interface. +// encoding.TextMarshaler interface. func (binary Binary) MarshalText() ([]byte, error) { return []byte(binary.String()), nil }