diff options
author | Rob Pilling <robpilling@gmail.com> | 2015-11-13 14:52:21 +0000 |
---|---|---|
committer | Rob Pilling <robpilling@gmail.com> | 2015-11-13 14:56:37 +0000 |
commit | 312941c5e018bee87be524697b471061cf70b285 (patch) | |
tree | 740ecf4b9c1c8e395b042eb21a8271a1b8c7b291 /swift.html.markdown | |
parent | a3ac933d82fb63ef569df5c5fe6f0e5da245b80f (diff) |
Correct "Casting" mention in swift markdown
'T()' is initialisation/creation, 'x as T' is casting
Diffstat (limited to 'swift.html.markdown')
-rw-r--r-- | swift.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swift.html.markdown b/swift.html.markdown index df9c5092..e3934ab1 100644 --- a/swift.html.markdown +++ b/swift.html.markdown @@ -46,7 +46,7 @@ let `class` = "keyword" // backticks allow keywords to be used as variable names let explicitDouble: Double = 70 let intValue = 0007 // 7 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 // Build Specific values |