Fix typo registratedType -> registeredType

This commit is contained in:
Mike Bierlee 2014-05-16 01:38:28 +02:00
parent cc3c0d5f6d
commit 27d86ce8c7
2 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@ module poodinis.container;
import std.string;
struct Registration {
TypeInfo registratedType = null;
TypeInfo registeredType = null;
TypeInfo_Class instantiatableType = null;
public Object getInstance() {
@ -12,8 +12,8 @@ struct Registration {
}
class RegistrationException : Exception {
this(string message, TypeInfo registratedType, TypeInfo_Class instantiatableType) {
super(format("Exception while registering type %s to %s: %s", registratedType.toString(), instantiatableType.name, message));
this(string message, TypeInfo registeredType, TypeInfo_Class instantiatableType) {
super(format("Exception while registering type %s to %s: %s", registeredType.toString(), instantiatableType.name, message));
}
}
@ -37,7 +37,7 @@ class Container {
}
Registration newRegistration = { registeredType, instantiatableType };
registrations[newRegistration.registratedType] = newRegistration;
registrations[newRegistration.registeredType] = newRegistration;
return newRegistration;
}

View file

@ -15,7 +15,7 @@ version(unittest) {
unittest {
// Test register concrete type
auto registration = Container.register!(TestClass)();
assert(registration.registratedType == typeid(TestClass), "Type of registered type not the same");
assert(registration.registeredType == typeid(TestClass), "Type of registered type not the same");
}
unittest {