Merge pull request #134 from nm-infy/nm-infy-patch-2

Correct spelling in context.md
This commit is contained in:
Sunli 2020-06-01 19:16:26 +08:00 committed by GitHub
commit 27587dda8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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>
}
}
```
```