From d0e7349f239f8ce7c06b9df2fc914314e71b2094 Mon Sep 17 00:00:00 2001 From: wiese Date: Sun, 17 Apr 2022 20:35:12 +0200 Subject: [PATCH] docs: Multi-injection: fix wording (#1448) --- wiki/multi_injection.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki/multi_injection.md b/wiki/multi_injection.md index 81d3fe4d..8a1949dc 100644 --- a/wiki/multi_injection.md +++ b/wiki/multi_injection.md @@ -1,6 +1,6 @@ # Multi-injection -We can use multi-injection When two or more concretions have been bound to the an abstraction. +We can use multi-injection when two or more concretions have been bound to an abstraction. Notice how an array of `Weapon` is injected into the `Ninja` class via its constructor thanks to the usage of the `@multiInject` decorator: ```ts @@ -81,7 +81,7 @@ class Foo { } ``` -We discarded this idea because it is better to use decorators when there is not +We discarded this idea because it is better to use decorators when there is no other way to achieve something. In this case there is a much simpler way to achieve the desired result. We just need to **use `@multiInject` and avoid using `...`**: