From b099fc3027e521a5100102710423ebf2003b6701 Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH <1821404+PLNech@users.noreply.github.com> Date: Tue, 10 Aug 2021 12:05:51 +0200 Subject: [PATCH] docs(Executor.md): Minor typos (#3101) --- .github/2.0/cookbooks/Executor.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/2.0/cookbooks/Executor.md b/.github/2.0/cookbooks/Executor.md index dcdfa584eacb6..8d7b077ec69cc 100644 --- a/.github/2.0/cookbooks/Executor.md +++ b/.github/2.0/cookbooks/Executor.md @@ -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. @@ -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