mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Correct "Casting" mention in swift markdown
'T()' is initialisation/creation, 'x as T' is casting
This commit is contained in:
parent
a3ac933d82
commit
312941c5e0
@ -46,7 +46,7 @@ let `class` = "keyword" // backticks allow keywords to be used as variable names
|
|||||||
let explicitDouble: Double = 70
|
let explicitDouble: Double = 70
|
||||||
let intValue = 0007 // 7
|
let intValue = 0007 // 7
|
||||||
let largeIntValue = 77_000 // 77000
|
let largeIntValue = 77_000 // 77000
|
||||||
let label = "some text " + String(myVariable) // Casting
|
let label = "some text " + String(myVariable) // String construction
|
||||||
let piText = "Pi = \(π), Pi 2 = \(π * 2)" // String interpolation
|
let piText = "Pi = \(π), Pi 2 = \(π * 2)" // String interpolation
|
||||||
|
|
||||||
// Build Specific values
|
// Build Specific values
|
||||||
|
Loading…
Reference in New Issue
Block a user