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

Improve documentation for <integer>::from_str_radix #128001

Merged
merged 1 commit into from
Sep 19, 2024

Commits on Aug 31, 2024

  1. 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.
    Krappa322 committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    467dbcb View commit details
    Browse the repository at this point in the history