From f09db7df920e86d4cec7893dfe3775c504ddf886 Mon Sep 17 00:00:00 2001 From: TTW <35064951+ttw225@users.noreply.github.com> Date: Mon, 25 Mar 2019 14:14:05 +0800 Subject: [PATCH] Update addresses.rst Using AddressGenerator's argument was wrong. Using `start` instead `index`! --- docs/addresses.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/addresses.rst b/docs/addresses.rst index 8669c54a..c3403ae2 100644 --- a/docs/addresses.rst +++ b/docs/addresses.rst @@ -80,13 +80,13 @@ Using AddressGenerator generator = AddressGenerator(b'SEED9GOES9HERE') # Generate a list of addresses: - addresses = generator.get_addresses(index=0, count=5) + addresses = generator.get_addresses(start=0, count=5) # Generate a list of addresses in reverse order: - addresses = generator.get_addresses(index=42, count=10, step=-1) + addresses = generator.get_addresses(start=42, count=10, step=-1) # Create an iterator, advancing 5 indices each iteration. - iterator = generator.create_iterator(index=86, step=5) + iterator = generator.create_iterator(start=86, step=5) for address in iterator: ...