diff --git a/README.md b/README.md index 9ad28dc..774571e 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ m2.Equal(m1) ```go // get the multiaddr protocol description objects -ma.Protocols() +m1.Protocols() // []Protocol{ // Protocol{ Code: 4, Name: 'ip4', Size: 32}, // Protocol{ Code: 17, Name: 'udp', Size: 16}, @@ -69,9 +69,9 @@ ma.Protocols() #### En/decapsulate ```go -m.Encapsulate(ma.NewMultiaddr("/sctp/5678")) +ma.Encapsulate(ma.NewMultiaddr("/sctp/5678")) // -m.Decapsulate(ma.NewMultiaddr("/udp")) // up to + inc last occurrence of subaddr +ma.Decapsulate(ma.NewMultiaddr("/udp")) // up to + inc last occurrence of subaddr // ```