Skip to content

Commit

Permalink
fix typo in using-environment.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
wiryadev committed Nov 28, 2021
1 parent 9fcb12d commit 396236b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/modules/core/pages/using-environment.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Binding functions have access to the environment where the bound type is retriev
[.lead]
This environment is represented as a *context* variable.

The context is an object that is explicitly defined by the programmer for this retrieval or the receiving object when none is explicitely defined.
The context is an object that is explicitly defined by the programmer for this retrieval or the receiving object when none is explicitly defined.

There are two very important differences between a tag and a context:

Expand Down Expand Up @@ -128,7 +128,7 @@ val di = DI {

`WeakContextScope.of` will always return the same scope, which you should never clean!

If you need a compartimentalized scope which you can clean, you can create a new `WeakContextScope`:
If you need a compartmentalized scope which you can clean, you can create a new `WeakContextScope`:

[source, kotlin]
.Example: creating a WeakContextScope.
Expand Down Expand Up @@ -158,7 +158,7 @@ This allows you to retrieve a `User` instance:
- When there is a global `Request` context:
+
[source, kotlin]
.Example: retriving with a global context
.Example: retrieving with a global context
----
class MyController(override val di: DI, request: Request): DIAware {
override val diContext = kcontext(request)
Expand Down

0 comments on commit 396236b

Please sign in to comment.