From fa328bf6147a55d483455e8183091144339be7a0 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Fri, 16 Sep 2016 14:09:23 -0400 Subject: [PATCH] Update naming --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 // ```