Merge pull request #134 from nm-infy/nm-infy-patch-2
Correct spelling in context.md
This commit is contained in:
commit
79dd60cab2
|
@ -1,6 +1,6 @@
|
||||||
# Context
|
# 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`.
|
The following example shows how to borrow data in `Context`.
|
||||||
|
|
||||||
|
@ -18,4 +18,4 @@ impl Query {
|
||||||
ctx.data::<String>
|
ctx.data::<String>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user