Skip to content

Commit

Permalink
docs: Multi-injection: fix wording (#1448)
Browse files Browse the repository at this point in the history
  • Loading branch information
wiese authored Apr 17, 2022
1 parent 8e080ca commit d0e7349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiki/multi_injection.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 `...`**:

Expand Down

0 comments on commit d0e7349

Please sign in to comment.