From 7d206e89646d9ab92b7a473cb0e110f94b064a42 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Tue, 29 Dec 2015 01:41:36 +0100 Subject: [PATCH] Fix incorrect fact in tutorial --- TUTORIAL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index 19559b3..b806898 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -16,10 +16,10 @@ To make dependencies available, they have to be registered: ```d // Register concrete class dependencies.register!ExampleClass; -// Register by interface +// Register by super type dependencies.register!(ExampleInterface, ExampleClass); ``` -In the above example, dependencies on the concrete class and interface will resolve an instance of class ExampleClass. Registering a class by interface does not automatically register by concrete type. +In the above example, dependencies on the concrete class and interface will resolve an instance of class ExampleClass. A dependency registered by super type will automatically be registered by concrete type. Resolving dependencies ----------------------