Skip to content

Commit

Permalink
Merge pull request #1105 from sajadtorkamani/patch-1
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
dcavanagh authored Aug 24, 2019
2 parents 42e633a + e66fd75 commit dd39e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiki/scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ For example, the following binding will inject a factory which will always be a
container.bind<interfaces.Factory<Katana>>("Factory<Katana>").toAutoFactory<Katana>("Katana");
```

However, the value returned by the factory may or not be a singleton:
However, the value returned by the factory may or may not be a singleton:

```ts
container.bind<Katana>("Katana").to(Katana).inTransientScope();
Expand All @@ -82,7 +82,7 @@ container.bind<Katana>("Katana").to(Katana).inSingletonScope();

## About `inRequestScope`

When we use inRequestScope we are using an special kind of singleton.
When we use inRequestScope we are using a special kind of singleton.

- The `inSingletonScope` creates a singleton that will last for the entire life cycle of a type binding. This means that the `inSingletonScope` can be cleared up from memory when we unbind a type binding using `container.unbind`.

Expand Down

0 comments on commit dd39e31

Please sign in to comment.