This commit is contained in:
Eric Lippmann 2021-06-10 13:55:56 +02:00
parent d40768ee64
commit ec70babc91
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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
}