aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ber/bits.go6
-rw-r--r--ber/class_test.go2
2 files changed, 2 insertions, 6 deletions
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