Merge pull request #2845 from cjolif/master

fix typo
This commit is contained in:
wing328 2016-05-13 00:20:59 +08:00
commit aaf8c867a2

View File

@ -46,9 +46,9 @@ class Decoders {
} }
static func decode<T, Key: Hashable>(clazz clazz: [Key:T].Type, source: AnyObject) -> [Key:T] { static func decode<T, Key: Hashable>(clazz clazz: [Key:T].Type, source: AnyObject) -> [Key:T] {
let sourceDictinoary = source as! [Key: AnyObject] let sourceDictionary = source as! [Key: AnyObject]
var dictionary = [Key:T]() var dictionary = [Key:T]()
for (key, value) in sourceDictinoary { for (key, value) in sourceDictionary {
dictionary[key] = Decoders.decode(clazz: T.self, source: value) dictionary[key] = Decoders.decode(clazz: T.self, source: value)
} }
return dictionary return dictionary