From a99256e03c66bbe8d53ff4a57f5ed3012585137c Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Mon, 15 Feb 2016 20:40:20 +0100 Subject: [PATCH] Remove decoration --- TUTORIAL.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index 9da8421..13bf1c0 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -53,18 +53,18 @@ You can control how a dependency is resolved by specifying a creation scope duri * Resolve a dependency using a single instance (default): ```d -dependencies.register!(ExampleClass).singleInstance(); +dependencies.register!ExampleClass.singleInstance(); ``` * Resolve a dependency with a new instance each time it is resolved: ```d -dependencies.register!(ExampleClass).newInstance(); +dependencies.register!ExampleClass.newInstance(); ``` * Resolve a dependency using a pre-existing instance ```d auto preExistingInstance = new ExampleClass(); -dependencies.register!(ExampleClass).existingInstance(preExistingInstance); +dependencies.register!ExampleClass.existingInstance(preExistingInstance); ``` Autowiring