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

Fix incorrect example in string formatting docs. #873

Merged
merged 1 commit into from
Dec 16, 2023

Commits on Dec 15, 2023

  1. Fix incorrect example in string formatting docs.

    %s is defined to support "all numerical types (int, uint, and double)."
    but later the docs also say:
    "Passing an incorrect type (an integer to `%s`) is considered an error"
    
    The example in the parenthetical contradicts the definition of %s.
    
    This change replaces the parenthetical example with one that is
    accurate and verified by an existing test case. This change also adds
    an explicit test case to verify that it is valid to pass an in to %s.
    nicksnyder committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    194aa57 View commit details
    Browse the repository at this point in the history