mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
767ae2b33d
Improve documentation for <integer>::from_str_radix Two improvements to the documentation: - Document `-` as a valid character for signed integer destinations - Make the documentation even more clear that extra whitespace and non-digit characters is invalid. Many other languages, e.g. c++, are very permissive in string to integer routines and simply try to consume as much as they can, ignoring the rest. This is trying to make the transition for developers who are used to the conversion semantics in these languages a bit easier. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |