Skip to content

Comments

Use icmp instead of toUpper in getopt#8121

Merged
dlang-bot merged 1 commit intodlang:masterfrom
dkorpel:getopt-use-icmp
Jun 1, 2021
Merged

Use icmp instead of toUpper in getopt#8121
dlang-bot merged 1 commit intodlang:masterfrom
dkorpel:getopt-use-icmp

Conversation

@dkorpel
Copy link
Contributor

@dkorpel dkorpel commented Jun 1, 2021

Part of #8113

The loop variable v is inferred scope, while toUpper simply accepts string. The input of toUpper could be annotated return scope, but that depends on the template toCase being inferred correctly.

@dkorpel dkorpel requested a review from andralex as a code owner June 1, 2021 10:28
@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @dkorpel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

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

dub run digger -- build "master + phobos#8121"

@dkorpel dkorpel force-pushed the getopt-use-icmp branch from b3a5071 to b2564b7 Compare June 1, 2021 10:29
@dkorpel dkorpel changed the title use icmp instead ot toUpper in getopt Use icmp instead of toUpper in getopt Jun 1, 2021
@dkorpel dkorpel force-pushed the getopt-use-icmp branch from b2564b7 to a1eeccb Compare June 1, 2021 10:36
@dlang-bot dlang-bot merged commit d0a0cdb into dlang:master Jun 1, 2021
@dkorpel dkorpel deleted the getopt-use-icmp branch June 1, 2021 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants