Correct "Casting" mention in swift markdown

'T()' is initialisation/creation, 'x as T' is casting
This commit is contained in:
Rob Pilling 2015-11-13 14:52:21 +00:00
parent a3ac933d82
commit 312941c5e0

View File

@ -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