mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Use preferred shorthand syntax for dictionary type
This commit is contained in:
parent
3b121aa0ea
commit
54bd312f8d
@ -39,7 +39,7 @@ var occupations = [
|
||||
"kaylee": "Mechanic"
|
||||
]
|
||||
occupations["Jayne"] = "Public Relations"
|
||||
let emptyDictionary = Dictionary<String, Float>()
|
||||
let emptyDictionary = [String: Float]()
|
||||
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user