Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz834 committed Jun 20, 2023
1 parent a2b86b8 commit d8a9790
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/encoding/asn1/asn1.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ type OID struct {
der []byte
}

// FromObjectIdentifer creates a new OID from ObjectIdentifier.
func FromObjectIdentifer(oid ObjectIdentifier) (OID, error) {
// FromObjectIdentifier creates a new OID from ObjectIdentifier.
func FromObjectIdentifier(oid ObjectIdentifier) (OID, error) {
enc, err := makeObjectIdentifier(oid)
if err != nil {
return OID{}, errInvalidOID
Expand Down Expand Up @@ -351,17 +351,17 @@ func (oid OID) Equal(other OID) bool {
return bytes.Equal(oid.der, other.der)
}

// ToObjectIdentifer converts oid to an ObjectIdentifier.
func (oid OID) ToObjectIdentifer() (ObjectIdentifier, bool) {
// ToObjectIdentifier converts oid to an ObjectIdentifier
func (oid OID) ToObjectIdentifier() (ObjectIdentifier, bool) {
o, err := parseObjectIdentifier(oid.der)
if err != nil {
return nil, false
}
return o, true
}

// Equal returns true when oid and other represents the same Object Identifier.
func (oid OID) EqualObjectIdentifer(other ObjectIdentifier) bool {
// Equal returns true when oid and other represents the same Object Identifier
func (oid OID) EqualObjectIdentifier(other ObjectIdentifier) bool {
const (
valSize = 31
bitsPerByte = 7
Expand Down

0 comments on commit d8a9790

Please sign in to comment.