Skip to content

Commit

Permalink
docs(Executor.md): Minor typos (jina-ai#3101)
Browse files Browse the repository at this point in the history
  • Loading branch information
PLNech authored Aug 10, 2021
1 parent e709835 commit b099fc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/2.0/cookbooks/Executor.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ Methods decorated with `@request` can return `Optional[DocumentArray]`.

The return is optional. **All changes happen in-place.**

- If the return not `None`, then the current `docs` field in the `Request` will be overridden by the
- If the return is not `None`, then the current `docs` field in the `Request` will be overridden by the
returned `DocumentArray`, which will be forwarded to the next Executor in the Flow.
- If the return is just a shallow copy of `Request.docs`, then nothing happens. This is because the changes are already
made in-place, there is no point to assign the value.
Expand Down Expand Up @@ -408,7 +408,7 @@ Executor.load_config('y.yml')

### Use Executor out of the Flow

`Executor` object can be used directly just like regular Python object. For example,
`Executor` object can be used directly just like a regular Python object. For example,

```python
from jina import Executor, requests, DocumentArray, Document
Expand Down

0 comments on commit b099fc3

Please sign in to comment.