Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Buffer.fill, limits by (start, end), not (offset, length) #1912

Closed
razorg opened this issue Oct 19, 2011 · 2 comments
Closed

Buffer.fill, limits by (start, end), not (offset, length) #1912

razorg opened this issue Oct 19, 2011 · 2 comments
Labels

Comments

@razorg
Copy link

razorg commented Oct 19, 2011

Docs specify that Buffer.fill works like that:

Buffer.fill(value, offset=0, length=-1)

But on the sources it is like this:

Buffer.fill(value, offset=0, end=buffer.length)

I guess the docs should be corrected.
Right?

@razorg
Copy link
Author

razorg commented Oct 19, 2011

I'm talking about v0.5.9

@bnoordhuis
Copy link
Member

Thanks. Fixed in 9bb3a68.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants