From 2cc8f3d68a92b79397e4dc06339dda1ba8d08462 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Mon, 15 Feb 2016 20:35:47 +0100 Subject: [PATCH] Fix tutorial showing how to create a new container Containers should be shared because they're designed to work accross threads. --- TUTORIAL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index 8c7ca35..254d980 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -7,7 +7,7 @@ The container To register a class, a new dependency container must be instantiated: ```d // Register a private container -auto dependencies = new DependencyContainer(); +shared(DependencyContainer) dependencies = new DependencyContainer(); // Or use the singleton container dependencies = DependencyContainer.getInstance(); ```