Merge pull request #134 from nm-infy/nm-infy-patch-2
Correct spelling in context.md
This commit is contained in:
commit
27587dda8f
|
@ -1,6 +1,6 @@
|
|||
# Context
|
||||
|
||||
The main goal of `Context` is to acquire global data attached to Schema. **Note that if the return value of resolver function is borrowed from `Context`, you need to explictly state the lifetime of the argument.**
|
||||
The main goal of `Context` is to acquire global data attached to Schema. **Note that if the return value of resolver function is borrowed from `Context`, you need to explicitly state the lifetime of the argument.**
|
||||
|
||||
The following example shows how to borrow data in `Context`.
|
||||
|
||||
|
@ -18,4 +18,4 @@ impl Query {
|
|||
ctx.data::<String>
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue