aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2023-11-23 17:26:09 +0200
committerEli Zaretskii2023-11-23 17:26:09 +0200
commit5a5e36d2aad77a4eb80249895d809187630eacc8 (patch)
tree275389d13473906cf14b73aa20204fc0d0487457
parent86016d8ecdb3db4a1a2c6f85a4239f2fdaacd69a (diff)
downloademacs-5a5e36d2aad77a4eb80249895d809187630eacc8.tar.gz
emacs-5a5e36d2aad77a4eb80249895d809187630eacc8.zip
; Improve function documentation tips
* doc/lispref/tips.texi (Documentation Tips): Clarify the good style of descriptions in doc strings.
-rw-r--r--doc/lispref/tips.texi7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi
index db9f64aa8a0..f0d4753e41b 100644
--- a/doc/lispref/tips.texi
+++ b/doc/lispref/tips.texi
@@ -631,7 +631,12 @@ first line with a capital letter and end it with a period.
631 631
632For a function, the first line should briefly answer the question, 632For a function, the first line should briefly answer the question,
633``What does this function do?'' For a variable, the first line should 633``What does this function do?'' For a variable, the first line should
634briefly answer the question, ``What does this value mean?'' 634briefly answer the question, ``What does this value mean?'' Prefer to
635answer these questions in a way that will make sense to users and
636callers of the function or the variable. In particular, do @emph{not}
637tell what the function does by enumerating the actions of its code;
638instead, describe the role of these actions and the function's
639contract.
635 640
636Don't limit the documentation string to one line; use as many lines as 641Don't limit the documentation string to one line; use as many lines as
637you need to explain the details of how to use the function or 642you need to explain the details of how to use the function or