Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return the number of bytes written from itoa::write (fixes #6) #7

Merged
merged 2 commits into from
Jan 28, 2017

Conversation

nox
Copy link
Contributor

@nox nox commented Jan 28, 2017

No description provided.

itoa::write(&mut buf, $value).unwrap();
assert_eq!(buf, $expected.as_bytes());
let mut buf = [b'\0'; 20];
let len = itoa::write(&mut &mut buf[..], $value).unwrap();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's fix the &mut &mut thing by accepting W instead of &mut W.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

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

Successfully merging this pull request may close these issues.

2 participants