From 4eac56a72907c54038a4863186af8e2198653125 Mon Sep 17 00:00:00 2001 From: chebee7i Date: Sun, 11 Jan 2015 15:32:52 -0600 Subject: DOC: Clarify documentation for Yields. --- doc/HOWTO_DOCUMENT.rst.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/HOWTO_DOCUMENT.rst.txt b/doc/HOWTO_DOCUMENT.rst.txt index 00567f98f..228994743 100644 --- a/doc/HOWTO_DOCUMENT.rst.txt +++ b/doc/HOWTO_DOCUMENT.rst.txt @@ -249,16 +249,15 @@ The sections of the docstring are: 6. **Yields** Explanation of the yielded values and their types. This is relevant to - generators only. Similar to the **Parameters** section, except the name - of each return value is optional. The type of each return value is - always required:: + generators only. Similar to the **Returns** section in that the name of + each value is optional, but the type of each value is always required:: Yields ------ int Description of the anonymous integer return value. - If both the name and type are specified, the **Returns** section takes the + If both the name and type are specified, the **Yields** section takes the same form as the **Parameters** section:: Yields -- cgit v1.2.1