diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2024-05-22 15:47:26 -0700 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2024-05-30 13:35:07 -0600 |
commit | 23a0bc28515934ed081169257f5b76167f07df4a (patch) | |
tree | 1beed9679516282aa68b4976984c4351dba8fcdd /Documentation | |
parent | 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 (diff) |
doc-guide: kernel-doc: document Returns: spelling
scripts/kernel-doc accepts "Return:" or "Returns:" for describing the
return value of a function or function-like macro, so document this
alternative spelling and use it in an example.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240522224726.10498-1-rdunlap@infradead.org
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/doc-guide/kernel-doc.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/doc-guide/kernel-doc.rst b/Documentation/doc-guide/kernel-doc.rst index d6f7efefea42..e6ffd59bb8f0 100644 --- a/Documentation/doc-guide/kernel-doc.rst +++ b/Documentation/doc-guide/kernel-doc.rst @@ -143,7 +143,7 @@ Return values ~~~~~~~~~~~~~ The return value, if any, should be described in a dedicated section -named ``Return``. +named ``Return`` (or ``Returns``). .. note:: @@ -337,7 +337,7 @@ Typedefs with function prototypes can also be documented:: * Description of the type. * * Context: Locking context. - * Return: Meaning of the return value. + * Returns: Meaning of the return value. */ typedef void (*type_name)(struct v4l2_ctrl *arg1, void *arg2); |