diff --git a/TUTORIAL.md b/TUTORIAL.md index 4fa9dee..0d77823 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -34,9 +34,9 @@ auto exampleClassInstance = dependencies.resolve!ExampleInterface; auto exampleClassInstance2 = dependencies.resolve!ExampleClass; assert(exampleClassInstance is exampleClassInstance2); ``` -If you want to prevent registrations from being both registered by interface and concrete type, use the DO_NOT_ADD_CONCRETE_TYPE_REGISTRATION option when registering: +If you want to prevent registrations from being both registered by interface and concrete type, use the "doNotAddConcreteTypeRegistration" option when registering: ```d -dependencies.register!(ExampleInterface, ExampleClass)(RegistrationOptions.DO_NOT_ADD_CONCRETE_TYPE_REGISTRATION); +dependencies.register!(ExampleInterface, ExampleClass)([RegistrationOptions.doNotAddConcreteTypeRegistration]); auto exampleClassInstance = dependencies.resolve!ExampleInterface; auto exampleClassInstance2 = dependencies.resolve!ExampleClass; // A ResolveException is thrown ```