tschneidereit / SwiftSuspenders

NOTE: Find the offical repo at http://github.com/robotlegs/swiftsuspenders
https://github.com/robotlegs/swiftsuspenders
MIT License
280 stars 89 forks source link

The second parameter type of SwiftSuspendersInjector::mapClass #12

Closed imcotton closed 14 years ago

imcotton commented 14 years ago

I saw this code at README.textile var currentTime : Date = new Date(); injector.mapClass(Date, currentTime, 'currentTime');

Isn't the second parameter request Class type? Why there full with a instance? Doesn't the compiler throw a Compile-Time error?

tschneidereit commented 14 years ago

Fixed an error in the documentation.

Closed by fb13cee3b2f99bb87c8fa82f19133163297abbfe