Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion concepts/numbers/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let plancksConstant : Double = 6.62607015e-34 // plancksConstant is a Double
## Arithmetic operators

~~~~exercism/caution
In Swift can't mix types in arithmetic operations, so you can't use any arithmetic operator on an `Int` with a `Double` or vice versa.
In Swift you can't mix types in arithmetic operations, so you can't use any arithmetic operator on an `Int` with a `Double` or vice versa.
Copy link
Member

Choose a reason for hiding this comment

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

Note, https://github.com/exercism/swift/blob/main/concepts/numbers/about.md?plain=1#L25 has the same typo. I believe these two files are meant to be the same.

Copy link
Member

Choose a reason for hiding this comment

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

Therefore, you have to do a type conversion first.
~~~~

Expand Down