From 14f91378e2c4bc970b41ec8e940eda9e897bbc0f Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 14 Jul 2015 14:09:38 +0200 Subject: Update example --- ber/bits.go | 6 +----- ber/class_test.go | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'ber') diff --git a/ber/bits.go b/ber/bits.go index 3d1ca41..4eb6c05 100644 --- a/ber/bits.go +++ b/ber/bits.go @@ -3,7 +3,7 @@ package ber // BitString type Bits []bool -func parseBitString(b []byte) (bs Bits) { +func UnmarshalBitString(b []byte) (bs Bits) { padding := int(b[0]) length := (len(b)-1)*8 - padding for i := 0; i < length; i++ { @@ -15,10 +15,6 @@ func parseBitString(b []byte) (bs Bits) { return } -func UnmarshalBitString(b []byte) Bits { - return parseBitString(b) -} - func (bs Bits) String() (s string) { bmap := map[bool]string{ true: "1", diff --git a/ber/class_test.go b/ber/class_test.go index 90fe1f8..a0b2569 100644 --- a/ber/class_test.go +++ b/ber/class_test.go @@ -23,7 +23,7 @@ func ExampleIdent() { // 0x2: Universal Primitive Integer // 0x4: Universal Primitive Octet String // 0xa: Universal Primitive Enumerated - // 0x30: Universal Constructed Sequence / Of + // 0x30: Universal Constructed Sequence (Of) // 0x40: Application Primitive 0x0 // 0x61: Application Constructed 0x1 // 0x7e: Application Constructed 0x1e -- cgit v1.2.3