1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-01 04:20:39 +02:00

Use preferred shorthand syntax for dictionary type

This commit is contained in:
Janne R.
2014-08-26 20:48:35 +03:00
parent 3b121aa0ea
commit 54bd312f8d

View File

@@ -39,7 +39,7 @@ var occupations = [
"kaylee": "Mechanic" "kaylee": "Mechanic"
] ]
occupations["Jayne"] = "Public Relations" occupations["Jayne"] = "Public Relations"
let emptyDictionary = Dictionary<String, Float>() let emptyDictionary = [String: Float]()
// //