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 Issue 18952 - std.experimental.checkedint.Saturate prints integral promotion deprecation message #6549

Merged
merged 2 commits into from Jun 14, 2018

Conversation

wilzbach
Copy link
Member

@wilzbach wilzbach commented Jun 6, 2018

Also added a few public documentation examples as unittests.
I added them in the top as there was only one high-level example.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @wilzbach!

Bugzilla references

Auto-close Bugzilla Severity Description
18952 normal std.experimental.checkedint.Saturate prints integral promotion deprecation message

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + phobos#6549"

@wilzbach wilzbach added documentation Trivial typos, formatting, comments labels Jun 6, 2018
assert(x.isNaN);
}

// ProperCompare fixes the comparison operators ==, !=, <, <=, >, and >= to return correct results
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably doc comment with ///

assert(y > -1); // ProperCompare
}

// Throws fails every incorrect operation by throwing an exception
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably doc comment with ///

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Maybe backtick "Saturate", "WithNan" etc, or anything else that make them distinguishable from the verb.

assert(y > -1); // ProperCompare
}

/// Throws fails every incorrect operation by throwing an exception
Copy link

Choose a reason for hiding this comment

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

Throw without s

@wilzbach
Copy link
Member Author

wilzbach commented Jun 8, 2018

Good idea to use backticks. Thanks!
(done)

@dlang-bot dlang-bot merged commit 15b682a into dlang:master Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants