Skip to content

Commit 512d286

Browse files
committed
doc: fixed example for non-existent bytes_addr keyword
1 parent 8562f14 commit 512d286

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ Simple
4040
m1 = Multiaddr("/ip4/127.0.0.1/udp/1234")
4141
4242
# construct from bytes
43-
m2 = Multiaddr(bytes_addr=m1.to_bytes())
43+
#m2 = Multiaddr(bytes_addr=m1.to_bytes()) # deprecated
44+
m2 = Multiaddr(m1.to_bytes())
4445
4546
assert str(m1) == "/ip4/127.0.0.1/udp/1234"
4647
assert str(m1) == str(m2)

0 commit comments

Comments
 (0)