Skip to content

Integer types ‘to_bytes’ and ‘from_bytes’ docs outdated #54001

New issue

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

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

Already on GitHub? # to your account

Closed
yrp604 opened this issue Sep 6, 2018 · 2 comments
Closed

Integer types ‘to_bytes’ and ‘from_bytes’ docs outdated #54001

yrp604 opened this issue Sep 6, 2018 · 2 comments
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@yrp604
Copy link

yrp604 commented Sep 6, 2018

For example https://doc.rust-lang.org/std/primitive.u64.html#method.to_bytes

The method is now called {to,from}_{le,be,ne}_bytes and the current tracking issue seems to be #52963

@Centril Centril added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Sep 7, 2018
@jebrosen
Copy link
Contributor

jebrosen commented Sep 9, 2018

Note that the "nightly" documentation has the correct information, see https://doc.rust-lang.org/nightly/std/primitive.u64.html#method.to_be_bytes

@sfackler
Copy link
Member

sfackler commented Sep 9, 2018

Yep, the docs linked in the original post are for the stable release which does not contain the rename.

@sfackler sfackler closed this as completed Sep 9, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

No branches or pull requests

4 participants