Zewo / Reflection

DEPRECATED
MIT License
599 stars 46 forks source link

Fix usage example in readme #5

Closed ole closed 7 years ago

ole commented 7 years ago

The first usage example in the readme fails to compile under Swift 3.0.2 on this line:

let properties = try properties(Person)

with one error and one warning:

error: variable used within its own initial value
warning: missing '.self' for reference to metatype of type 'Person'

This change fixes it.

paulofaria commented 7 years ago

@ole thanks!