exercism / swift

Exercism exercises in Swift.
https://exercism.org/tracks/swift
MIT License
113 stars 158 forks source link

Fixed a (typing) error of code in vehicle purchase exercise #620

Closed grejioh closed 1 year ago

grejioh commented 1 year ago
guard myValue = 0 else { return 0 }
let root = myValue.squareRoot()

The Boolean expression of guard should not be like this and should be consistent with this: concepts/conditionals-guard/introduction.md

github-actions[bot] commented 1 year ago

Hello. Thanks for opening a PR on Exercism. We are currently in a phase of our journey where we have paused community contributions to allow us to take a breather and redesign our community model. You can learn more in this blog post. As such, all issues and PRs in this repository are being automatically closed.

That doesn't mean we're not interested in your ideas, or that if you're stuck on something we don't want to help. The best place to discuss things is with our community on the Exercism Community Forum. You can use [this link](https://forum.exercism.org/new-topic?title=Fixed%20a%20(typing)%20error%20of%20code%20in%20vehicle%20purchase%20exercise&body=%60%60%60swift%0D%0Aguard%20myValue%20=%200%20else%20%7B%20return%200%20%7D%0D%0Alet%20root%20=%20myValue.squareRoot()%0D%0A%60%60%60%0D%0AThe%20Boolean%20expression%20of%20guard%20should%20not%20be%20like%20this%20and%20should%20be%20consistent%20with%20this:%0D%0A%5Bconcepts/conditionals-guard/introduction.md%5D(https://github.com/exercism/swift/blob/55caa3c9d0461d7d04fdaac34eb68396efcd56d3/concepts/conditionals-guard/introduction.md)&category=swift) to copy this into a new topic there.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.