mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Fix typo
This commit is contained in:
parent
d40768ee64
commit
ec70babc91
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue