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 Switch statement in swift.md #550

Merged
merged 1 commit into from
Mar 5, 2024
Merged

Conversation

TRDSCSH
Copy link
Contributor

@TRDSCSH TRDSCSH commented Mar 5, 2024

补全 Switch 分支。

参考代码:https://www.codecademy.com/resources/docs/swift/switch

var secondaryColor = "green"

switch secondaryColor {
  case "orange":
    print("Mix of red and yellow.")
  case "green":
    print("Mix of blue and yellow.")
  case "purple":
    print("Mix of red and blue.")
  default:
    print("This might not be a secondary color.")
}

// Output: Mix of blue and yellow.

@jaywcjlove jaywcjlove merged commit 57d42b2 into jaywcjlove:main Mar 5, 2024
github-actions bot pushed a commit that referenced this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants