From 27d86ce8c75597c974de09af2c856090d501c582 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Fri, 16 May 2014 01:38:28 +0200 Subject: [PATCH] Fix typo registratedType -> registeredType --- source/poodinis/container.d | 8 ++++---- test/poodinis/containertest.d | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/poodinis/container.d b/source/poodinis/container.d index 613f533..cf9b85e 100644 --- a/source/poodinis/container.d +++ b/source/poodinis/container.d @@ -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; } diff --git a/test/poodinis/containertest.d b/test/poodinis/containertest.d index 00d64b0..19242aa 100644 --- a/test/poodinis/containertest.d +++ b/test/poodinis/containertest.d @@ -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 {